@Test
public void testInvalidStructuredOutput() {

  Resource.Type type = Resource.Type.Task;
  // Test general case
  AmbariManagementController managementController = createMock(AmbariManagementController.class);
  TaskResourceProvider taskResourceProvider = new TaskResourceProvider(
      PropertyHelper.getPropertyIds(type),
      PropertyHelper.getKeyPropertyIds(type), managementController);
  replay(managementController);
  Map<?, ?> result = taskResourceProvider.parseStructuredOutput(null);
  Assert.assertNull(result);
  result = taskResourceProvider.parseStructuredOutput("This is some bad JSON");
  Assert.assertNull(result);
  verify(managementController);
}