@Test
public void testGetRoleForEngine() {

    Optional<Role> roleOptional = engineManager.getRole(ERROR, "role");
    verify(engine, times(0)).getRole("role");
    assertFalse(roleOptional.isPresent());
    roleOptional = engineManager.getRole(engine.getEngineName(), "role");
    verify(engine).getRole("role");
    assertTrue(roleOptional.isPresent());
    assertEquals(roleOptional.get(), role);
}