@Test
    void testJsonSearchRequestSerialisation() {
        // Given
        SearchRequest searchRequest = SearchRequestTestData.apiSearchRequest();

        // When
        String serialisedSearchRequest = JsonUtil.writeValueAsString(searchRequest);
        SearchRequest deserialisedSearchRequest = JsonUtil.readValue(serialisedSearchRequest, SearchRequest.class);
        String reSerialisedSearchRequest = JsonUtil.writeValueAsString(deserialisedSearchRequest);

        // Then
        assertThat(searchRequest).isEqualTo(deserialisedSearchRequest);
        assertThat(serialisedSearchRequest).isEqualTo(reSerialisedSearchRequest);
    }
Checks serialisation by converting to and from the SearchRequest objects and comparing the results
stroom-dashboard/stroom-dashboard-impl/src/test/java/stroom/dashboard/impl/TestSearchRequestSerialisation.java