@Test
public void testGetFactType() throws Exception {

    final PatternWrapper pattern = mock(PatternWrapper.class);
    final String expectedFactType = "FactType";
    doReturn(expectedFactType).when(pattern).getFactType();
    doReturn(pattern).when(plugin).patternWrapper();
    final String factType = plugin.getFactType();
    assertEquals(expectedFactType,
                 factType);
}