@Test
public void testFindByStackAndVersion() throws Exception {

  createRecordsUntilStep(1);
  Assert.assertEquals(
      0,
      clusterVersionDAO.findByStackAndVersion("non existing", "non existing",
          "non existing").size());
  Assert.assertEquals(
      1,
      clusterVersionDAO.findByStackAndVersion(HDP_22_STACK.getStackName(),
          HDP_22_STACK.getStackVersion(), "2.2.0.0-995").size());
}