public RecordBuilderImpl snap(final View measuredView) {
    RecordBuilderImpl recordBuilder =
        new RecordBuilderImpl(this)
            .setView(measuredView)
            .setTestClass(TestNameDetector.getTestClass())
            .setTestName(TestNameDetector.getTestName());

    return recordBuilder;
  }
Snaps a screenshot of the view (which should already be measured and layouted) using testName
as the name.
core/src/main/java/com/facebook/testing/screenshot/internal/ScreenshotImpl.java