@Test
public void testFindByClusterStackAndVersion() {

  Assert.assertEquals(3, hostVersionDAO.findByClusterStackAndVersion("test_cluster1", HDP_22_STACK, repoVersion_2200).size());
  Assert.assertEquals(3, hostVersionDAO.findAll().size());
  addMoreVersions();
  Assert.assertEquals(3, hostVersionDAO.findByClusterStackAndVersion("test_cluster1", HDP_22_STACK, repoVersion_2201).size());
  Assert.assertEquals(3, hostVersionDAO.findByClusterStackAndVersion("test_cluster1", HDP_22_STACK, repoVersion_2202).size());
  Assert.assertEquals(9, hostVersionDAO.findAll().size());
}