@Test
public void testFindEntries() {

    Pattern urlPattern = Pattern.compile("http://abc\\.com\\?param=\\d?");
    HarLog log = new HarLog();
    int entriesNumber = 10;
    for (int i = 0; i < entriesNumber; i++) {
        HarEntry entry = new HarEntry();
        HarRequest request1 = new HarRequest();
        request1.setUrl("http://abc.com?param=" + i);
        entry.setRequest(request1);
        log.getEntries().add(entry);
    }
    Assert.assertEquals("Expected to find all entries",
        log.findEntries(urlPattern).size(), entriesNumber);
}