@Test
public void testResolveFactTypeByName() throws Exception {

  String type = "FactType";
  FactTypeEntity entity = new FactTypeEntity();
  when(factManager.getFactType(type)).thenReturn(entity);
  assertSame(entity, resolver.resolveFactType(type));
  verify(factManager).getFactType(type);
  verifyNoMoreInteractions(factManager);
}