URLLocator implements Locator<URLLocation> { @Override public File locate(URLLocation location) { throw new UnsupportedOperationException(); }  @Override File locate(URLLocation location); @Override File copyToDirectory(URLLocation location, File toDir); @Override InputStream openInputStream(URLLocation location); @Override File copyToFile(URLLocation location, File toFile);  }
@Test public void locate_not_supported() { thrown.expect(UnsupportedOperationException.class); underTest.locate(location); }