JATKInterpreterStack extends Stack<Variable> implements Cloneable { public boolean isTopInteger() { if(isEmpty()){ return false; } return peek().isInteger(); }  Integer popInteger(); Float popFloat(); Boolean popBoolean(); String popString(); List<Variable> popTable(); boolean isTopInteger(); boolean isTopFloat(); boolean isTopBoolean(); boolean isTopString(); boolean isTopTable(); void pushInteger(Integer i); void pushString(String s); void pushFloat(Float s); void pushBoolean(Boolean s); void pushTable(List<Variable> t);  }
@Test public void testIsTopInteger(){ stack.pushString("aValue1"); stack.pushInteger(132); assertTrue(stack.isTopInteger()); stack.pushString("aValue2"); assertFalse(stack.isTopInteger()); }