PersistenceExtensionUtils { public static String unwrapParenthesis(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 testUnwrapMissingWrongOrder() throws Exception { final String constant = ")abc("; Assertions.assertThatThrownBy(() -> PersistenceExtensionUtils.unwrapParenthesis(constant)) .hasMessage("\")abc(\" had not characters '(':4 and ')':0 in appropriate order."); }