@Test
  public void testPluginDumps() throws Throwable {
    ViewHelpers.setupView(mView).setExactHeightPx(1000).setExactWidthPx(20000).layout();

    LayoutHierarchyDumper dumper =
        LayoutHierarchyDumper.createWith(
            Collections.<HierarchyPlugin>emptyList(), Collections.singletonList(mAttributePlugin));
    JSONObject root = dumper.dumpHierarchy(mView);

    assertEquals("bar", root.getString("foo:foo"));
  }
Utility class to make inspecting a serialized hierarchy easier
core/src/androidTest/java/com/facebook/testing/screenshot/layouthierarchy/LayoutHierarchyDumperTest.java