assertNotNull( resourceAdapter );
Resource resource = resourceAdapter.getDroolsResource();
assertTrue( resource instanceof UrlResource );
UrlResource ur = (UrlResource) resource;
assertEquals( "enabled",
ur.getBasicAuthentication() );
assertEquals( "someUser",
ur.getUsername() );
assertEquals( "somePassword",
ur.getPassword() );
//Insecure Resource
resourceAdapter = (DroolsResourceAdapter) context.getBean( "insecureResource" );
assertNotNull( resourceAdapter );
resource = resourceAdapter.getDroolsResource();
assertTrue( resource instanceof UrlResource );
ur = (UrlResource) resource;
assertEquals( "disabled",
ur.getBasicAuthentication() );
assertEquals( "",
ur.getUsername() );
assertEquals( "",
ur.getPassword() );
}