Album implements Bundleable { public static Builder builder() { return new Builder(); } protected  Album(@NonNull String identity,
                    @NonNull String name,
                    @Nullable String artistName,
                    int songCount,
                    @Nullable String date,
                    @Nullable Uri artworkUri); @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 String artistName; final int songCount; final String date; final Uri artworkUri; static final BundleCreator<Album> BUNDLE_CREATOR; }
@Test(expected = NullPointerException.class) public void ensureAlbumNullIdentityThrows() { Album a = Album.builder().setName("Album1").build(); }
@Test(expected = NullPointerException.class) public void ensureAlbumNullNameThrows() { Album a = Album.builder().setIdentity("1").build(); }