@Test
public void testBadClassNotLeftInMap() {

    final B2JsonHandlerMap handlerMap = new B2JsonHandlerMap();
    try {
        handlerMap.getHandler(BadClassHolder.class);
        fail("should have thrown");
    } catch (Throwable t) {
        assertThat(t.getMessage(), containsString("BadClass has no constructor annotated with B2Json.constructor"));
    }
    try {
        handlerMap.getHandler(BadClassHolder.class);
        fail("should have thrown");
    } catch (Throwable t) {
        assertThat(t.getMessage(), containsString("BadClass has no constructor annotated with B2Json.constructor"));
    }
}