@Test
public void definesSelect() throws Exception
{
Object queryTemplateBean = muleContext.getRegistry().get("testSelect");
assertTrue(queryTemplateBean instanceof QueryTemplate);
QueryTemplate queryTemplate = (QueryTemplate) queryTemplateBean;
assertEquals(QueryType.SELECT, queryTemplate.getType());
assertEquals("SELECT * FROM PLANET WHERE POSITION = ?", queryTemplate.getSqlText());
assertEquals(1, queryTemplate.getInputParams().size());
InputQueryParam param1 = queryTemplate.getInputParams().get(0);
assertEquals(UnknownDbType.getInstance(), param1.getType());
assertEquals("position", param1.getName());
assertEquals("0", param1.getValue());
assertEquals(1, param1.getIndex());
}