+ soneBuilder.from(identity).using(client).build();
+ }
+
+ @Test(expected = IllegalStateException.class)
+ public void localSoneIsNotValidatedWithoutClient() {
+ Identity identity = mock(OwnIdentity.class);
+ soneBuilder.from(identity).local().lastUpdated(1L).build();
+ }
+
+ @Test(expected = IllegalStateException.class)
+ public void remoteSoneIsNotValidatedWithoutClient() {
+ Identity identity = mock(Identity.class);
+ soneBuilder.from(identity).lastUpdated(1L).build();