@Test
public void testWhenOnApplicationEventReceivedShouldSetInternalPort() {

    //GIVEN
    given(routeEngineConfigurationAccess.getProperties()).willReturn(propertyDTO);
    given(propertyDTO.getProxyPort()).willReturn(9876);
    //WHEN
    underTest.onApplicationEvent(null);
    //THEN
    assertEquals(9876, Whitebox.getInternalState(underTest, "internalPort"));
}