How have people handled unit tests with togglz?
Testing classes in isolation that have feature flag checks are currently throwing errors in JUnit because there is no FeatureManager set up for the unit test:
java.lang.IllegalStateException: Could not find the FeatureManager. For web applications please verify that the TogglzFilter starts up correctly. In other deployment scenarios you will typically have to implement a FeatureManagerProvider as described in the 'Advanced Configuration' chapter of the documentation.
Ideally I'd want to set something up in the unit test to return true/false for the feature flag. Mockito isn't too good at mocking static classes - do people use PowerMock or another framework or just manually set up a FeatureManager for classes that test methods with togglz calls?