Tank extends AbstractTank { public Pipe getInPipe() { return inPipe; } Tank(float capacity, TankSelector tankSelector, Liquid liquid, Pipe outPipe, Pipe inPipe); Pipe getInPipe(); @Override synchronized void reset();  }
@Test public void testPipes() { Tank tank = new Tank(5, TankSelector.CYAN, liquid, outPipe, inPipe); assertEquals(inPipe, tank.getInPipe()); assertEquals(outPipe, tank.getOutPipe()); }