VariableAssignment extends Assignment { public Variable getSource() { return this.source; } VariableAssignment(final Variable target, final Variable source); Variable getSource(); @Override final String toString();  }
@Test public void testGetSource() throws Exception { Variable v = Variable.create(Type.INT, "v", null); Variable w = Variable.create(Type.INT, "w", "42"); VariableAssignment vw = new VariableAssignment(v, w); assertEquals(w, vw.getSource()); }