@Test
public void testExceptionOnGetPublishableConnectString () throws Exception {

    TransportConnector mockTransportConnector = Mockito.mock(TransportConnector.class);
    Mockito.when(mockTransportConnector.toString()).thenReturn("x-conn-x");
    Mockito.when(mockTransportConnector.getPublishableConnectString()).thenThrow(testException);
    this.transportConnectorList.add(mockTransportConnector);
    this.startBrokerMojo.execute();
    Mockito.verify(this.mockMavenLog).warn("error on obtaining broker connector uri; connector=x-conn-x",
            this.testException);
}