@Test
public void shouldGetTheRemoteSystemCommanderMBean() throws Exception {

    final String contextName = "my-context";
    final SystemCommanderMBean systemCommanderMBean = mock(SystemCommanderMBean.class);
    when(mBeanConnector.connect(
            contextName,
            SystemCommanderMBean.class,
            jmxConnector)).thenReturn(systemCommanderMBean);
    assertThat(systemCommanderClient.getRemote(contextName), is(systemCommanderMBean));
}