@Test
public void testBuildProfileOnlyGlobalFilters() throws Exception {

  Set<Map<String, String>> filters = newHashSet(
    filter("namenode_ui", null, true),
    filter(null, "sso", true),
    filter(null, null, false)
  );
  String profileJson = new QuickLinksProfileBuilder().buildQuickLinksProfile(filters, null);
  //verify
  QuickLinksProfile profile = new QuickLinksProfileParser().parse(profileJson.getBytes());
  assertFilterExists(profile, null, null, Filter.linkNameFilter("namenode_ui", true));
  assertFilterExists(profile, null, null, Filter.linkAttributeFilter("sso", true));
  assertFilterExists(profile, null, null, Filter.acceptAllFilter(false));
}