@Test
    public void requireThatIdIdStringCanBehaveLikeUserDoc() {
        DocumentId docId1 = new DocumentId(new IdIdString("namespace", "type", "n=10", "foo"));
        DocumentId docId2 = new DocumentId(new IdIdString("namespace", "type", "n=10", "bar"));
        DocumentId docId3 = new DocumentId(new IdIdString("namespace", "type", "n=20", "baz"));
        assertEquals(docId1.getScheme().getLocation(), docId2.getScheme().getLocation());
        assert(docId1.getScheme().getLocation() != docId3.getScheme().getLocation());
    }
Created with IntelliJ IDEA.
User: magnarn
Date: 10/16/12
Time: 9:10 AM
document/src/test/java/com/yahoo/document/IdIdStringTest.java