@SuppressWarnings("unchecked")
@Test
public void testInvoke() throws RemotingException {

    mockChannel = mock(Channel.class);
    String result = handler.telnet(mockChannel, "");
    assertTrue(result.contains("Application has shutdown successfully"));
}