@Test
public void retrievesDefaultValueWhenPropertyDoesNotPresentInApplicationContext() throws Exception {

    when(applicationContext.getInitialProperties().getProperties()).thenReturn(emptyMap());
    when(parameter.getDefaultValue()).thenReturn("default");
    Object resolvedHeader = propertyResolver.resolve(parameter, applicationContext);
    assertEquals("default", resolvedHeader);
}