Artist implements Bundleable { public static Builder builder() { return new Builder(); } protected  Artist(@NonNull String identity,
                     @NonNull String name,
                     int albumCount,
                     int songCount); @Override String getIdentity(); @Override String getName(); @Override Bundle toBundle(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Builder builder(); final String identity; final String name; final int albumCount; final int songCount; static final BundleCreator<Artist> BUNDLE_CREATOR; }
@Test(expected = NullPointerException.class) public void ensureArtistNullIdentityThrows() { Artist a = Artist.builder().setName("Artist1").build(); }
@Test(expected = NullPointerException.class) public void ensureArtistNullNameThrows() { Artist a = Artist.builder().setIdentity("1").build();; }