final int invoked[] = new int[1];
SecurityEnhancer test = new AbstractSecurityEnhancer() {
@Override
protected SecurityEnhancerResult doBulkEnhance(SecurityEnhancerRequest request) {
invoked[0]++;
SecurityEnhancerResult r = new SecurityEnhancerResult();
r.getResultList().add(SECURITY2);
return r;
}
};
Security result = test.enhanceSecurity(SECURITY1);
assertEquals(SECURITY2, result);