List<Number> countRes = new ArrayList<Number>();
countRes.add(10);
UIProviderImpl provider = new UIProviderImpl();
JdbcTemplate template = EasyMock.createMock(JdbcTemplate.class);
provider.setJdbcTemplate(template);
provider.setDialect(new DerbyDialect());
// Expectations
EasyMock.expect(template.query(EasyMock.anyObject(PreparedStatementCreator.class), EasyMock.anyObject(RowMapper.class)))
.andReturn(countRes);
EasyMock.expect(