### Question:
TokenStream { public void shift() { currentTokenPosition++; } 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 currentAndShift() { assertCurrentIsOfType(IF); tokenStream.shift(); assertCurrentIsOfType(PROPERTY_KEY); tokenStream.shift(); assertCurrentIsOfType(ELSE); }