@Test
public void testLoadPatterns() throws Exception {

    final ArrayList<String> lhsBoundFacts = new ArrayList<String>() {{
        add("boundFact1");
        add("");
        add("boundFact3");
    }};
    final ArrayList<String> expectedPatterns = new ArrayList<String>() {{
        add("boundFact1");
        add("boundFact3");
    }};
    doReturn(lhsBoundFacts).when(page).getLHSBoundFacts();
    final List<String> patterns = page.loadPatterns();
    assertEquals(expectedPatterns,
                 patterns);
}