@Test
public void testOnApplicationEvent() {

    //GIVEN
    given(configurationAccess.getProperties()).willReturn(properties);
    given(properties.getBrokerHost()).willReturn("blah");
    given(properties.getBrokerPort()).willReturn(16161);
    //WHEN
    underTest.onApplicationEvent(event);
    //THEN
    verify(connectionFactory).setBrokerURL("tcp://blah:" + 16161);
}