@Test
public void testBuildProfileOnlyServiceFilters() throws Exception {

  Map<String, Object> nameNode = component("NAMENODE",
      newHashSet(filter("namenode_ui", null, false)));
  Map<String, Object> hdfs = service("HDFS",
      newHashSet(nameNode),
      newHashSet(filter(null, "sso", true)));
  Set<Map<String, Object>> services = Sets.newHashSet(hdfs);
  String profileJson = new QuickLinksProfileBuilder().buildQuickLinksProfile(null, services);
  //verify
  QuickLinksProfile profile = new QuickLinksProfileParser().parse(profileJson.getBytes());
  assertFilterExists(profile, "HDFS", "NAMENODE", Filter.linkNameFilter("namenode_ui", false));
  assertFilterExists(profile, "HDFS", null, Filter.linkAttributeFilter("sso", true));
}