@Test
public void testGetAllServiceConfigs() throws Exception {

  ServiceConfigEntity serviceConfigEntity = null;
  serviceConfigEntity = createServiceConfig("HDFS", "admin", 1L, 1L, 10L, null);
  serviceConfigEntity = createServiceConfig("HDFS", "admin", 2L, 2L, 20L, null);
  serviceConfigEntity = createServiceConfig("HDFS", "admin", 3L, 3L, 30L, null);
  serviceConfigEntity = createServiceConfig("YARN", "admin", 1L, 4L, 40L, null);
  long clusterId = serviceConfigEntity.getClusterId();
  List<ServiceConfigEntity> serviceConfigs = serviceConfigDAO.getAllServiceConfigsForClusterAndStack(clusterId, HDP_01);
  Assert.assertEquals(4, serviceConfigs.size());
  serviceConfigs = serviceConfigDAO.getAllServiceConfigsForClusterAndStack(clusterId, HDP_02);
  Assert.assertEquals(0, serviceConfigs.size());
}