class PersonTest { @Test void testWhenPersonFetchedRecordComponentsNotNull() { Map fetchedPerson = PersonHttpUtil.fetchPerson(); Person person = Person.from(fetchedPerson); assertThat(person, notNullValue()); assertThat(person.email(), is(not(emptyOrNullString()))); assertThat(person.fullName(), notNullValue()); assertThat(person.fullName().first(), is(not(emptyOrNullString()))); assertThat(person.fullName().last(), is(not(emptyOrNullString()))); } }