@Test
    public void requireThatKeysWithoutValuesThrow() {
        try {
            new IdIdString("namespace", "type", "illegal-pair", "foo");
            fail();
        } catch (IllegalArgumentException e) {
            assertEquals("Illegal key-value pair 'illegal-pair'", e.getMessage());
        }
    }
Created with IntelliJ IDEA.
User: magnarn
Date: 10/16/12
Time: 9:10 AM
document/src/test/java/com/yahoo/document/IdIdStringTest.java