@Test
public void shouldRemoveConnectionFromCacheWhenConnectionIsClosed() {

    // Arrange
    final IOException e = new IOException();
    // Act
    this.clientConnectionEventListener.connectionClosed(e);
    // Assert
    verify(this.connectionCache).removeConnection(DEVICE_IDENTIFICATION);
}