@Test
public void shouldCreateASimpleJaxbWithJaxContextCreateWithGivenClassToBeBound() throws Exception {

    Class<?>[] classesToBeBound = new Class<?>[0];
    SimpleJaxb mockSimpleJaxb = mock(SimpleJaxb.class);
    mockStatic(JAXBContext.class);
    when(JAXBContext.newInstance(classesToBeBound)).thenReturn(mockJaxbContext);
    whenNew(SimpleJaxb.class).withArguments(any(JAXBContext.class)).thenReturn(mockSimpleJaxb);
    Jaxb actual = JaxbFactory.create(mockCRestConfig, getClass(), classesToBeBound);
    assertTrue(actual instanceof SimpleJaxb);
    verifyNew(SimpleJaxb.class).withArguments(mockJaxbContext);
}