@@ -0,0 +1,782 @@
+package interpreter;%0A%0Aimport interpreter.Interpreter;%0Aimport interpreter.Environment;%0Aimport interpreter.type.Symbol;%0Aimport interpreter.type.TestObject;%0A%0Aimport static org.junit.Assert.assertSame;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.mockito.Mockito.*;%0A%0Apublic class InterpreterTest %7B%0A%0A    private Environment env;%0A    private Interpreter interpreter;%0A%0A    @Before%0A    public void setUp() %7B%0A        env = mock(Environment.class);%0A        interpreter = new Interpreter();%0A    %7D%0A%0A    @Test%0A    public void evalWhenGivenSymbolLookUpIsCalledAndReturnsObject() %7B%0A        Symbol sym = new Symbol(%22test%22);%0A        TestObject obj = new TestObject();%0A        when(env.lookUp(sym)).thenReturn(obj);%0A        assertSame(interpreter.eval(sym, env), obj);%0A    %7D%0A%7D%0A

Add InterpreterTest