@Test(expected=InvalidTopologyException.class)
public void testValidateRequiredProperties_SqlaInHiveStackHdp22() throws Exception {

  Map<String, String> hiveEnvConfig = new HashMap<String, String>();
  hiveEnvConfig.put("hive_database","Existing SQL Anywhere Database");
  configProperties.put("hive-env", hiveEnvConfig);
  group1Components.add("HIVE_METASTORE");
  services.addAll(Arrays.asList("HIVE"));
  Configuration config = new Configuration(new HashMap<String, Map<String, String>>(), new HashMap<String, Map<String, Map<String, String>>>());
  expect(group1.getConfiguration()).andReturn(config).anyTimes();
  expect(stack.getComponents("HIVE")).andReturn(Collections.singleton("HIVE_METASTORE")).anyTimes();
  expect(stack.getVersion()).andReturn("2.2").once();
  expect(stack.getName()).andReturn("HDP").once();
  expect(blueprint.getHostGroupsForComponent("HIVE_METASTORE")).andReturn(Collections.singleton(group1)).anyTimes();
  replay(blueprint, stack, group1, group2, dependency1);
  BlueprintValidator validator = new BlueprintValidatorImpl(blueprint);
  validator.validateRequiredProperties();
}