@Test
public void disposeShouldShutdownConnectionManager(){

    ClientConnectionManager clientConnectionManager = mock(ClientConnectionManager.class);
    when(client.getConnectionManager()).thenReturn(clientConnectionManager);
    toTest.dispose();
    verify(clientConnectionManager).shutdown();
}