### Question:
MyEnrichAndReformatFn extends DoFn<String, String> { public long _calculateTimestamp(long offset) { return this.startTimestamp + offset; } MyEnrichAndReformatFn();  MyEnrichAndReformatFn(long arg0); @ProcessElement void processElement(@Element String element, OutputReceiver<String> receiver); long _getOffset(String input); long _calculateTimestamp(long offset); String _makeJson(String input, long timestamp);  }### Answer:
@Test public void calculate_timestamp() { long offset = 789; long timestampExpected = BEAM_2_14_RELEASE + offset; long timestampCalculated = myEnrichAndReformatFn._calculateTimestamp(offset); assertThat("timestampCalculated", timestampCalculated, is(equalTo(timestampExpected))); }