### Question:
TokenStream { boolean hasAny() { return !tokens.isEmpty(); } TokenStream(final Token... tokens);   TokenStream(final List<Token> tokens); Token current(); void reset(int save); void shift(); int remaining(); int getCurrentTokenPosition();  }### Answer:
@Test public void hasAny() { Assert.assertFalse(new TokenStream().hasAny()); Assert.assertTrue(tokenStream.hasAny()); }