SimpleUnixFileStore extends BaseSimpleFileStore { @Override public long getUnallocatedSpace() throws IOException { throw new UnsupportedOperationException(); } protected  SimpleUnixFileStore(final Path path); @Override String name(); @Override long getTotalSpace(); @Override long getUsableSpace(); @Override long getUnallocatedSpace();  }
@Test(expected = UnsupportedOperationException.class) public void getUnallocatedSpaceUnsupportedOp() { new SimpleUnixFileStore(null).getUnallocatedSpace(); }