@Test
public void testEmbedFlags() throws Exception {

    assertEquals("(?im:abc)", util.embedFlags("abc", Pattern.CASE_INSENSITIVE ^ Pattern.MULTILINE));
    assertEquals("abc", util.embedFlags("abc", 0));
}