@Test
public void testLiteralMatchGroup() {

    List<String> list = new ArrayList<String>();
    list.add("cat");
    assertEquals("(cat)", PatternUtils.literalMatchGroup(list));
    list.add("dog");
    assertEquals("(cat|dog)", PatternUtils.literalMatchGroup(list));
    list.add("rat");
    assertEquals("(cat|dog|rat)", PatternUtils.literalMatchGroup(list));
}