JavaIndexArtifact extends IndexArtifact { @Override protected Map<String, Boolean> getFileTypes() { return fileTypes; } JavaIndexArtifact(String location); String getSnapshotVersion(); void setSnapshotVersion(String snapshotVersion); @Override boolean equals(Object obj);  }
@Test public void testFileTypes() { JavaIndexArtifact jia = new JavaIndexArtifact(""); Map<String, Boolean> types = jia.getFileTypes(); assertFalse(types.get("jar")); assertFalse(types.get("jar.sha1")); assertFalse(types.get("jar.md5")); assertFalse(types.get("pom")); assertFalse(types.get("pom.sha1")); assertFalse(types.get("pom.md5")); }