assertTrue(result.isEmpty());
}
public void convertFilledListToJson() {
List<Registration> registrations = new ArrayList<>();
Registration expected = mock(Registration.class);
when(expected.getId()).thenReturn(42l);
registrations.add(expected);
mockQuery(Registration.findAll, registrations);
final JsonArray result = this.cut.allAsJson();
assertNotNull(result);
assertThat(result.size(), is(1));
JsonObject actual = result.getJsonObject(0);
JsonNumber actualId = actual.getJsonNumber(Registrations.CONFIRMATION_ID);
assertThat(expected.getId(), is(actualId.longValue()));
}