Input extends Operation { public final Variable getTarget() { return this.destination; } Input(final String query, final Variable destination); final String getQuery(); final Variable getTarget(); @Override final String toString();  }
@Test public void testGetDestination() throws Exception { Variable<Integer> intVar = new Variable<Integer>(Type.INT, "i", null); Input in = new Input("Enter a number: ", intVar); assertEquals(intVar, in.getTarget()); }