@Test public void shouldGetEnvironmentProperty() throws Exception { String propertyName = "any.property.name"; String expectedValue = "property.value"; Mockito.when(environment.getProperty(propertyName)).thenReturn(expectedValue); String value = service.getPropertyValue(propertyName); assertThat(value, is(expectedValue)); }
public String getPropertyValue(String propertyName) { return environment.getProperty(propertyName); }
StaticReferenceDataService { public String getPropertyValue(String propertyName) { return environment.getProperty(propertyName); } }
StaticReferenceDataService { public String getPropertyValue(String propertyName) { return environment.getProperty(propertyName); }  }
StaticReferenceDataService { public String getPropertyValue(String propertyName) { return environment.getProperty(propertyName); }  String getPropertyValue(String propertyName); boolean getBoolean(String propertyName); }
StaticReferenceDataService { public String getPropertyValue(String propertyName) { return environment.getProperty(propertyName); }  String getPropertyValue(String propertyName); boolean getBoolean(String propertyName);  }