@Test
public void testForEach() {

    JsonObjectIterator iterator = mock(JsonObjectIterator.class);
    JsonObject subject = subject();
    subject.forEach(iterator);
    verify(iterator).apply("a", JsonValue.of(true));
    verify(iterator).apply("b", JsonValue.of(new JSONObject()));
}