@Test public void canParseAProperDirective() { when(parser.moveNext(1)).thenReturn(new Symbol(SymbolType.Whitespace)); final Symbol expectedSymbol = new Symbol(SymbolType.Text, "thePomFile"); when(parser.parseTo(SymbolType.EndCell)).thenReturn(expectedSymbol); final Maybe<Symbol> result = mavenClasspathSymbolType.parse(symbol, parser); assertNotNull(result); assertNotSame(Symbol.nothing, result); }