@Test
public void shouldLoadFeatureState() {

    // Given
    final FeatureState featureState = new FeatureState(TestFeatures.TEST_FEATURE_1);
    featureState.setEnabled(true);
    featureState.setStrategyId("someStrategy");
    featureState.setParameter("someKey1", "someValue1");
    featureState.setParameter("someKey2", "someValue2");
    testee.create(featureState);
    // When
    final FeatureState loadedFeatureState = testee.getFeatureState(TestFeatures.TEST_FEATURE_1);
    // Then
    assertThat(loadedFeatureState.getFeature(), is(TestFeatures.TEST_FEATURE_1));
    assertThat(loadedFeatureState.getStrategyId(), is("someStrategy"));
    assertThat(loadedFeatureState.isEnabled(), is(true));
    assertThat(loadedFeatureState.getParameter("someKey1"), is("someValue1"));
    assertThat(loadedFeatureState.getParameter("someKey2"), is("someValue2"));
}