@Test public void equalsReturnsFalseWhenNotEqual() { Category category1 = new Category("john", "desc", true, false); Category category2 = new Category("bob", "desc", true, false); assertFalse(category1.equals(category2)); }
@Test public void equalsReturnsTrueWhenEqual() { Category category1 = new Category("john", "desc", true, false); Category category2 = new Category("john", "desc", true, false); assertTrue(category1.equals(category2)); }