QueryTemplate queryTemplate = (QueryTemplate) queryTemplateBean;
assertEquals(QueryType.SELECT, queryTemplate.getType());
assertEquals("SELECT * FROM PLANET WHERE POSITION = ? AND NAME = ?", queryTemplate.getSqlText());
assertEquals(2, 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());
InputQueryParam param2 = queryTemplate.getInputParams().get(1);
assertEquals(UnknownDbType.getInstance(), param2.getType());
assertEquals("name", param2.getName());
assertEquals("mars", param2.getValue());
assertEquals(2, param2.getIndex());
}