PortuguesePOSSequenceValidator implements
    SequenceValidator<String> { static boolean validOutcome(String outcome, String[] sequence) { String prevOutcome = null; if (sequence.length > 0) { prevOutcome = sequence[sequence.length - 1]; } return validOutcome(outcome, prevOutcome); } PortuguesePOSSequenceValidator(TagDictionary tagDictionary); boolean validSequence(int i, String[] inputSequence,
      String[] outcomesSequence, String outcome); public TagDictionary tagDictionary; }
@Test public void testValidOutcomeStringString() { assertTrue(PortuguesePOSSequenceValidator.validOutcome("a", "b")); assertTrue(PortuguesePOSSequenceValidator.validOutcome("I-a", "I-a")); assertTrue(PortuguesePOSSequenceValidator.validOutcome("I-a", "B-a")); assertTrue(PortuguesePOSSequenceValidator.validOutcome("B-a", "I-a")); assertTrue(PortuguesePOSSequenceValidator.validOutcome("B-a", "b")); assertFalse(PortuguesePOSSequenceValidator.validOutcome("B-a", "B-a")); assertFalse(PortuguesePOSSequenceValidator.validOutcome("I-b", "B-a")); assertFalse(PortuguesePOSSequenceValidator.validOutcome("I-b", "I-a")); assertFalse(PortuguesePOSSequenceValidator.validOutcome("I-b", "a")); }