@Test
public void testMapArrayOfStrings() {

    final JsonArray jsonOrdinals = Json.createArrayBuilder().add("one").add("two").add("three").build();
    final List<String> ordinals = Arrays.asList("one", "two", "three");
    assertEquals("no args returns list of strings for JsonArray containing strings",
            ordinals, mapArrayOfStrings(jsonOrdinals));
    final List<String> upperOrdinals = Arrays.asList("ONE", "TWO", "THREE");
    assertEquals("reverse function applied to strings", upperOrdinals,
            mapArrayOfStrings(jsonOrdinals, String::toUpperCase));
}