@Test
public void testPrepareView() throws Exception {

    final Pattern52 pattern = new Pattern52() {{
        setFactType("Person");
        setBoundName("p");
        setChildColumns(Collections.singletonList(new ConditionCol52()));
    }};
    model.setConditionPatterns(Collections.singletonList(pattern));
    actionSetFieldsPage.prepareView();
    verify(actionSetFieldsPageView).setAvailablePatterns(patternsCaptor.capture());
    assertEquals(1, patternsCaptor.getValue().size());
    assertEquals(pattern, patternsCaptor.getValue().get(0));
}