MixTank extends AbstractTank { public Motor getMotor() { return motor; } MixTank(float capacity, Liquid liquid, Pipe outPipe); Motor getMotor(); @Override synchronized void reset();  }
@Test public void testMotor() { MixTank tank = new MixTank(5, liquid, outPipe); assertNotNull(tank.getMotor()); }