QueryTemplate queryTemplate = new QueryTemplate(sqlText, QueryType.UPDATE, Collections.<QueryParam>emptyList());
Mockito.when(statementFactory.create(connection, queryTemplate)).thenReturn(statement);
Query query = new Query(queryTemplate, null);
Object result = updateExecutor.execute(connection, query);
assertEquals(1, result);
}
}