Movie extends BaseEntity { public boolean isEmptyYear() { return getYear() == 0; } Movie(String title, int year);  Movie(Movie movie); boolean isEmptyTitle(); boolean isEmptyYear(); boolean isDefaultType(); boolean isEmptyIMDBId(); boolean isEmptyRating();  }
@Test public void testIsEmptyYear() throws Exception { assertFalse(new Movie("Inception", 2010).isEmptyYear()); assertTrue(new Movie("Inception", 0).isEmptyYear()); }