Scenario extends BaseOpenMessage { static boolean isStopped(String value) { return verifyMessage(value, STOP); } private  Scenario(String value); static Scenario requestStart(String where); static Scenario requestStart(String where, Version version); static Scenario requestStop(String where); static Scenario requestStop(String where, Version version); static Func1<OpenSession, OpenSession> handleResponse(Action0 onSuccess, Action0 onFail); static Scenario requestStatus(String where); static Scenario requestStatus(String where, Version version); static Func1<OpenSession, OpenSession> handleStatus(
            Action0 startStatus, Action0 stopStatus, Action0 enableStatus, Action0 disableStatus);  }
@Test public void testIsStopped() { assertTrue(isStopped("*17*2*0##")); assertTrue(isStopped("*17*2*X##")); assertTrue(isStopped("*17*2*XXXX##")); }
@Test public void testIsStoppedInvalid() { assertFalse(isStopped("*17*1*0##")); assertFalse(isStopped(null)); assertFalse(isStopped("")); assertFalse(isStopped("*17*2*21")); assertFalse(isStopped("*17*2*##")); assertFalse(isStopped("*17*2*XXXXX##")); }