@Test public void shouldNotPlayClinicGreetingMessageIfAnyTreeWasTraversed() { ivrContext.hasTraversedAnyTree(true); assertTrue(ArrayUtils.isEmpty(incomingWelcomeMessage.executeCommand(ivrContext))); }
@Test public void shouldPlayClinicGreetingMessageIfNoTreeHasBeenTraversed() { ivrContext.hasTraversedAnyTree(false); assertArrayEquals( new String[] {EXPECTED_WELCOME_MESSAGE}, incomingWelcomeMessage.executeCommand(ivrContext)); }