SoftConstraintMatchPersistenceExtension implements RuleModelIActionPersistenceExtension { @Override public boolean accept(final String iActionString) { return CONSTRAINT_MATCH_PATTERN.matcher(iActionString).matches(); }  @Override boolean accept(final String iActionString); @Override PluggableIAction unmarshal(final String iActionString);  }
@Test public void acceptString() { assertTrue(extension.accept("scoreHolder.addSoftConstraintMatch(kcontext, -1);")); assertTrue(extension.accept("scoreHolder.addSoftConstraintMatch(kcontext, 1, -1);")); assertFalse(extension.accept("unknownString")); }