}
@Test
public void testCustomRule() {
VerifierBuilder vBuilder = VerifierBuilderFactory.newVerifierBuilder();
VerifierConfiguration vConfiguration = vBuilder.newVerifierConfiguration();
// Check that the builder works.
assertFalse( vBuilder.hasErrors() );
assertEquals( 0,
vBuilder.getErrors().size() );
vConfiguration.getVerifyingResources().put( new ClassPathResource( "FindPatterns.drl",
Verifier.class ),
ResourceType.DRL );
Verifier verifier = vBuilder.newVerifier( vConfiguration );
verifier.addResourcesToVerify( new ClassPathResource( "Misc3.drl",
Verifier.class ),
ResourceType.DRL );