PersistenceExtensionUtils { public static String unwrapCurlyBrackets(final String stringToUnwrap) { return unwrap(stringToUnwrap, '{', '}'); } private  PersistenceExtensionUtils(); static String unwrapParenthesis(final String stringToUnwrap); static String unwrapCurlyBrackets(final String stringToUnwrap); static String extractConstraintMatchValue(final String s); static final String EXCEPTION_MESSAGE_BASE; }
@Test public void testUnwrapMissingWrongOrderCurly() throws Exception { final String constant = "}abc{"; Assertions.assertThatThrownBy(() -> PersistenceExtensionUtils.unwrapCurlyBrackets(constant)) .hasMessage("\"}abc{\" had not characters '{':4 and '}':0 in appropriate order."); }