public TestBaseMappingStrategy(String testName) {
super(testName);
}
public void testArrayMapping() throws Exception {
ReadContext context = new ReadContext(
new BindingConfiguration(),
new ReadConfiguration());
context.pushElement("LibraryBeanWithArraySetter");
context.markClassMap(LibraryBeanWithArraySetter.class);
context.pushElement("books");
ActionMappingStrategy strategy = ActionMappingStrategy.DEFAULT;
MappingAction action = strategy.getMappingAction("", "books", new AttributesImpl(), context);
assertTrue("Should be mapped to an array bind action", action instanceof ArrayBindAction);
}