@Test
public void compileShouldReturnACompiledVersionOfGivenPlaceholdeMap(){

    Map<String,String> placeholders = Collections.singletonMap("te.st", "someval");
    Map<Pattern, String> actual = Placeholders.compile(placeholders);
    assertNotNull(actual);
    assertEquals(1, actual.size());
    Map.Entry<Pattern,String> entry = actual.entrySet().iterator().next();
    assertEquals("someval", entry.getValue());
    assertEquals("\\{\\Qte.st\\E\\}", entry.getKey().pattern());
}