@Test
void useInjection() {

    pmmlRestResourceGenerator.withDependencyInjection(null);
    assertFalse(pmmlRestResourceGenerator.useInjection());
    pmmlRestResourceGenerator.withDependencyInjection(getDependencyInjectionAnnotator());
    assertTrue(pmmlRestResourceGenerator.useInjection());
}