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

  // GIVEN
  // oozzie-type is wrong!
  clusterRequestConfigTypes = new HashSet<String>(Arrays.asList("core-site", "yarn-site", "oozie-site"));
  EasyMock.expect(clusterConfigurationMock.getAllConfigTypes()).andReturn(clusterRequestConfigTypes).anyTimes();
  EasyMock.expect(blueprintMock.getServices()).andReturn(new HashSet<String>(Arrays.asList("YARN", "HDFS")));
  EasyMock.expect(stackMock.getConfigurationTypes("HDFS")).andReturn(Arrays.asList("core-site"));
  EasyMock.expect(stackMock.getConfigurationTypes("YARN")).andReturn(Arrays.asList("yarn-site"));
  replayAll();
  // WHEN
  clusterConfigTypeValidator.validate(clusterTopologyMock);
  // THEN
  // Exception is thrown
}