- assertThat(sone.getTime(), is(1000L));
- assertThat(sone.getClient(), notNullValue());
- assertThat(sone.getClient().getName(), is("Test-Client"));
- assertThat(sone.getClient().getVersion(), is("1.0"));
- assertThat(sone.getProfile(), notNullValue());
- assertThat(sone.getProfile().getFirstName(), is("First"));
- assertThat(sone.getProfile().getMiddleName(), is("M."));
- assertThat(sone.getProfile().getLastName(), is("Last"));
- assertThat(sone.getProfile().getBirthYear(), is(2000));
- assertThat(sone.getProfile().getBirthMonth(), is(9));
- assertThat(sone.getProfile().getBirthDay(), is(13));
- assertThat(sone.getProfile().getAvatar(), is("avatar-id"));
+ assertThat(sone.isPresent(), is(true));
+ assertThat(sone.get().getTime(), is(1000L));
+ assertThat(sone.get().getClient(), notNullValue());
+ assertThat(sone.get().getClient().getName(), is("Test-Client"));
+ assertThat(sone.get().getClient().getVersion(), is("1.0"));
+ assertThat(sone.get().getProfile(), notNullValue());
+ assertThat(sone.get().getProfile().getFirstName(), is("First"));
+ assertThat(sone.get().getProfile().getMiddleName(), is("M."));
+ assertThat(sone.get().getProfile().getLastName(), is("Last"));
+ assertThat(sone.get().getProfile().getBirthYear(), is(2000));
+ assertThat(sone.get().getProfile().getBirthMonth(), is(9));
+ assertThat(sone.get().getProfile().getBirthDay(), is(13));
+ assertThat(sone.get().getProfile().getAvatar(), is("avatar-id"));