### Question:
HibernateIntegrationDefinitionDao extends HibernateDaoSupport implements IntegrationDefinitionDao { @SuppressWarnings("unchecked") public List<IntegrationDefinition> getIntegrationDefinitionOfConsumer( String consumerOrganizationId, String consumerSystemId) { LOG.debug("get IntegrationDefinition of Consumer(organizationId = \"" + consumerOrganizationId + "\", systemId = \"" + consumerSystemId + "\")"); List<IntegrationDefinition> list = getHibernateTemplate() .find( "from IntegrationDefinition as integrationDefinition " + "where integrationDefinition.consumer.organization.id = ? " + "and integrationDefinition.consumer.id = ?", new Object[] {consumerOrganizationId, consumerSystemId }); if (LOG.isDebugEnabled()) { LOG .debug("get IntegrationDefinition of Consumer(organizationId = \"" + consumerOrganizationId + "\", systemId = \"" + consumerSystemId + "\")'s size = " + list.size()); int i = 0; for (IntegrationDefinition integrationDefinition : list) { LOG.debug("[" + i + "] : " + integrationDefinition); i++; } } return list; }  IntegrationDefinition getIntegrationDefinition(String id); @SuppressWarnings("unchecked") List<IntegrationDefinition> getIntegrationDefinitionOfConsumer(
            String consumerOrganizationId, String consumerSystemId); @SuppressWarnings("unchecked") List<IntegrationDefinition> getIntegrationDefinitionOfProvider(
            String providerOrganizationId, String providerSystemId);  }### Answer:
@Test public void testReadOfConsumerSucceeds() throws Exception { List<IntegrationDefinition> list = dao.getIntegrationDefinitionOfConsumer("00000000", "00000000"); assertEquals(2, list.size()); assertEquals("1", list.get(0).getId()); assertTrue(list.get(0).isValid()); assertEquals("2", list.get(1).getId()); assertTrue(list.get(1).isValid()); }