@Test
public void shouldCloseTheJmxConnectorOnTryWithResources() throws Exception {

    try(final SystemCommanderClient anotherSystemCommanderClient = new SystemCommanderClient(jmxConnector, mBeanConnector)) {
        assertThat(anotherSystemCommanderClient, is(notNullValue()));
    }
    verify(jmxConnector).close();
}