@Test
public void fromJsonThrowsOnMissingSubjects() {

    final JsonObject json = JsonFactory.newObjectBuilder()
            .set("defaultSubject", (String) null)
            .build();
    assertThatExceptionOfType(JsonMissingFieldException.class)
            .isThrownBy(() -> DefaultUserInformation.fromJson(json));
}