ResourceLocation implements Location { public static ResourceLocation create(String pathStartingWithSlash) { return new ResourceLocation(pathStartingWithSlash); } private  ResourceLocation(String path); static ResourceLocation create(String pathStartingWithSlash); String getPath(); String getFilename(); @Override String toString();  }
@Test public void path_must_start_with_slash() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("Path must start with slash"); ResourceLocation.create("path"); }