@Test
public void testGetPatternsWhenColumnIsNew() throws Exception {

    mockPatterns();
    doReturn(true).when(plugin).isNewColumn();
    final Set<PatternWrapper> patterns = plugin.getPatterns();
    assertEquals(2,
                 patterns.size());
    assertTrue(patterns.contains(new PatternWrapper("factType",
                                                    "boundName",
                                                    true)));
    assertTrue(patterns.contains(new PatternWrapper("factType",
                                                    "boundName")));
}