@Test
public void buildShouldUseDefaultAnnotationHandlers() throws Exception {

    CRest actual = toTest.build();
    InterfaceConfigFactory configFactory = Classes.getFieldValue(actual, "configFactory");
    assertEquals(AnnotationDrivenInterfaceConfigFactory.class, configFactory.getClass());
    ComponentRegistry annotationHandlerRegistry = Classes.getFieldValue(configFactory, "handlersRegistry");
    Map mapping = Classes.getFieldValue(annotationHandlerRegistry, "mapping");
    assertEquals(CRestAnnotations.getMapping().size() + JaxRsAnnotations.getMapping().size(), mapping.size());
    assertTrue(mapping.keySet().containsAll(CRestAnnotations.getMapping().keySet()));
    assertTrue(mapping.keySet().containsAll(JaxRsAnnotations.getMapping().keySet()));
}