@Test
public void disabledConnectionLogsAreNotEnabledAfterModify() {

    new TestKit(actorSystem) {{
        final TestProbe probe = TestProbe.apply(actorSystem);
        final ActorRef underTest =
                TestConstants.createConnectionSupervisorActor(connectionId, actorSystem, pubSubMediator,
                        proxyActor,
                        (connection, concierge, connectionActor) -> MockClientActor.props(probe.ref()));
        watch(underTest);
        // create connection
        underTest.tell(createConnection, getRef());
        probe.expectMsg(openConnection);
        expectMsg(createConnectionResponse);
        // modify connection
        underTest.tell(modifyConnection, getRef());
        probe.expectMsg(closeConnection);
        probe.expectMsg(openConnection);
        expectMsg(modifyConnectionResponse);
        probe.expectNoMsg();
    }};
}