" class=\"org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor\"/>\n" +
" </customInterceptors>";
Element element = XmlConfigHelper.stringToElementInCoreNS(xml);
List<CustomInterceptorConfig> configs = parser.parseCustomInterceptors(element);
assert configs.size() == 5;
CustomInterceptorConfig one = configs.get(0);
assert one.isFirst();
assert one.getInterceptor() instanceof AaaCustomInterceptor;
assert ((AaaCustomInterceptor)one.getInterceptor()).getAttrOne().equals("value1");
assert ((AaaCustomInterceptor)one.getInterceptor()).getAttrTwo().equals("value2");
assert ((AaaCustomInterceptor)one.getInterceptor()).getAttrThree().equals("value3");
CustomInterceptorConfig two = configs.get(1);
assert !two.isFirst();
assert two.isLast();
assert two.getInterceptor() instanceof BbbCustomInterceptor;
CustomInterceptorConfig three = configs.get(2);
assert !three.isFirst();
assert !three.isLast();
assert three.getIndex() == 3;
CustomInterceptorConfig four = configs.get(3);
assert !four.isFirst();
assert !four.isLast();
assert four.getBeforeClass().equals("org.jboss.cache.interceptors.CallInterceptor");
CustomInterceptorConfig five = configs.get(4);
assert !five.isFirst();
assert !five.isLast();
assert five.getAfterClass().equals("org.jboss.cache.interceptors.CallInterceptor");
}