ListenableStateRepository implements StateRepository { @Override public FeatureState getFeatureState(final Feature feature) { return delegate.getFeatureState(feature); } ListenableStateRepository(final StateRepository delegate,
                                     final Collection<FeatureStateChangedListener> listeners);  ListenableStateRepository(final StateRepository delegate,
                                     final FeatureStateChangedListener... listeners); final void addFeatureStateChangedListener(final FeatureStateChangedListener listener); @Override FeatureState getFeatureState(final Feature feature); @Override void setFeatureState(final FeatureState featureState);  }
@Test public void shouldReturnNullForUnknownFeature() { final ListenableStateRepository repo = new ListenableStateRepository(delegate); assertNull(repo.getFeatureState(TestFeature.F1)); }