HistoryChain { @Nullable S getState() { return state; } HistoryChain(@Nullable HistoryChain<S> previous, @Nullable S state);   }
@Test void testGetPayload() { HistoryChain<String> historyChain = new HistoryChain<>(null, "payload"); assertEquals("payload", historyChain.getState()); }