}
public void testCreateSQLTemplateAction() {
AutoAdapter adapter = new AutoAdapter(getNode().getDataSource());
SQLTemplateAction action = (SQLTemplateAction) adapter.getAction(new SQLTemplate(
Artist.class,
"select * from artist"), getNode());
// it is important for SQLTemplateAction to be used with unwrapped adapter, as the
// adapter class name is used as a key to the correct SQL template.
assertNotNull(action);
assertNotNull(action.getAdapter());
assertFalse(action.getAdapter() instanceof AutoAdapter);
assertSame(adapter.getAdapter(), action.getAdapter());
}