IndexKey { public IndexKey(RepositoryType type, String key) { this.key = key; this.type = type; } IndexKey(RepositoryType type, String key); RepositoryType getType(); String toPath(); String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testIndexKey() { IndexKey ik = new IndexKey(RepositoryType.UNKNOWN, "thingsandstuff"); assertEquals("UNKNOWN:thingsandstuff", ik.toString()); assertEquals("thingsandstuff", ik.toPath()); assertEquals("UNKNOWN", ik.getType().toString()); }