@Test
public void testValidateInstanceDefinition() throws Exception {

  AgentClientProvider provider = new AgentClientProvider(null);
  AggregateConf instanceDefinition = new AggregateConf();
  try {
    provider.validateInstanceDefinition(instanceDefinition, null);
    Assert.assertFalse("Should fail with BadConfigException", true);
  } catch (BadConfigException e) {
    log.info(e.toString());
    Assert.assertTrue(e.getMessage().contains("Application definition must be provided"));
  }
}