@Test
public void resolvesDynamicDbType() throws Exception
{
QueryTemplate queryTemplate = new QueryTemplate(SQL_TEXT, QueryType.SELECT, Collections.<org.mule.module.db.internal.domain.param.QueryParam>singletonList(new DefaultInputQueryParam(1, new DynamicDbType(CUSTOM_TYPE_NAME), "7", "param1")));
DbType customType = mock(DbType.class);
when(dbTypeManager.lookup(connection, CUSTOM_TYPE_NAME)).thenReturn(customType);
Map<Integer, DbType> parameterTypes = paramTypeResolver.getParameterTypes(connection, queryTemplate);
assertThat(1, equalTo(parameterTypes.size()));