@Test
public void resolvesInitialProperties() throws Exception {

    InitialProperties initialProperties = mock(InitialProperties.class);
    when(applicationContext.getInitialProperties()).thenReturn(initialProperties);
    when(parameter.getParameterClass()).thenReturn((Class)InitialProperties.class);
    assertSame(initialProperties, contextParameterResolver.resolve(parameter, applicationContext));
    verify(environmentContext, never()).get(any(Class.class));
}