SanStorage extends HarddriveStorage { @Override public double addReservedFile(final File file) { final double time = super.addReservedFile(file); return time + getTransferTime(file); } SanStorage(final long capacity, final double bandwidth, final double networkLatency);  SanStorage(final String name, final long capacity, final double bandwidth, final double networkLatency); @Override double addReservedFile(final File file); @Override double addFile(final File file); @Override double getTransferTime(final int fileSize); @Override double deleteFile(final File file); double getBandwidth(); final void setBandwidth(final double bandwidth); double getNetworkLatency(); final void setNetworkLatency(final double networkLatency); @Override String toString();  }
@Test public void testAddReservedFile() { final SanStorage instance = createSanStorage(BANDWIDTH); final File file = new File(FILE1, FILE_SIZE); assertTrue(instance.reserveSpace(file.getSize())); assertTrue(instance.addReservedFile(file) > FILE_TRANSFER_TIME); }