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