@Test
public void shouldDelegateToCreateWithGivenModelFactory() throws Exception {

    Class<?> modelFactory = JaxbFactoryTest.class;
    when(mockCRestConfig.get(getClass().getName() + JaxbFactory.MODEL_FACTORY_CLASS)).thenReturn(modelFactory);
    mockStatic(JAXBContext.class);
    when(JAXBContext.newInstance(modelFactory)).thenReturn(mockJaxbContext);
    Jaxb actual = JaxbFactory.create(mockCRestConfig, getClass());
    assertTrue(actual instanceof SimpleJaxb);
}