@Test
public void testQuickLinksProfile_BothGlobalAndServiceLevelFilters() throws Exception {

  Map<String, Object> properties = createBlueprintRequestProperties(CLUSTER_NAME, BLUEPRINT_NAME);
  properties.put(ProvisionClusterRequest.QUICKLINKS_PROFILE_FILTERS_PROPERTY,
      Sets.newHashSet(QuickLinksProfileBuilderTest.filter(null, null, true)));
  Map<String, String> filter = QuickLinksProfileBuilderTest.filter(null, null, true);
  Map<String, Object> hdfs = QuickLinksProfileBuilderTest.service("HDFS", null, Sets.newHashSet(filter));
  Set<Map<String, Object>> services = Sets.newHashSet(hdfs);
  properties.put(ProvisionClusterRequest.QUICKLINKS_PROFILE_SERVICES_PROPERTY, services);
  ProvisionClusterRequest request = new ProvisionClusterRequest(properties, null);
  System.out.println(request.getQuickLinksProfileJson());
  assertEquals("Quick links profile doesn't match expected",
      "{\"filters\":[{\"visible\":true}],\"services\":[{\"name\":\"HDFS\",\"components\":[],\"filters\":[{\"visible\":true}]}]}",
      request.getQuickLinksProfileJson());
}