@Test
public void testGetAsTextOrNull() {

    assertNull(underTest.getAsTextOrNull(null));
    JsonNode mockNode = mock(JsonNode.class);
    String returnValue = "test";
    when(mockNode.asText()).thenReturn(returnValue);
    assertEquals(returnValue, underTest.getAsTextOrNull(mockNode));
}