@Test public void stopSession_should_changeRecordingState() throws Exception { // given sessionManager.startMobileSession(false); // when sessionManager.stopSession(); // then org.fest.assertions.Assertions.assertThat(sessionManager.state.recording().isRecording()) .isFalse(); }