@Test
public void shouldCheckAndNotCreate() throws Exception {

    Optional<RegexContainer<Map<String, String>>> result = RegexContainer
            .checkAndCreate("/{}won't compile/", Collections.singletonMap("k", "v"));
    assertThat(result).isEmpty();
}