Movie extends BaseEntity { public boolean isEmptyIMDBId() { return getImdbId() == null; } Movie(String title, int year);  Movie(Movie movie); boolean isEmptyTitle(); boolean isEmptyYear(); boolean isDefaultType(); boolean isEmptyIMDBId(); boolean isEmptyRating();  }
@Test public void testIsEmptyIMDBId() throws Exception { assertFalse(new Movie("Inception", 2010).setImdbId("tt210240").isEmptyIMDBId()); assertTrue(new Movie("Inception", 2010, Movie.Type.MOVIE, null, null).isEmptyIMDBId()); }