@Test
public void shouldUseGivenCRestConfigJaxb() throws Exception {

    Jaxb predefined = mock(Jaxb.class);
    when(mockCRestConfig.get(getClass().getName() + JaxbFactory.JAXB)).thenReturn(predefined);
    Jaxb actual = JaxbFactory.create(mockCRestConfig, getClass());
    assertSame(predefined,actual);
}