@Test
public void testMatchesLike() {

    assertEquals(true, CriteriaMatcherInMemory.matchesLike("a", "a"));
    assertEquals(false, CriteriaMatcherInMemory.matchesLike("a", "b"));
    assertEquals(false, CriteriaMatcherInMemory.matchesLike("b", "a"));
    assertEquals(true, CriteriaMatcherInMemory.matchesLike("b", "%"));
    assertEquals(true, CriteriaMatcherInMemory.matchesLike("b", "b%"));
    assertEquals(false, CriteriaMatcherInMemory.matchesLike("b", "a%"));
    assertEquals(true, CriteriaMatcherInMemory.matchesLike("bbbbba", "%a%"));
}