### Question:
GroupConfigChangeTaskHolder { public boolean isEmpty() { return task == GroupConfigChangeTask.NONE; } GroupConfigChangeTaskHolder();  GroupConfigChangeTaskHolder(GroupConfigChangeTask task, GroupConfigChangeTaskReference reference); void awaitDone(long timeout); void cancel(); boolean isEmpty(); boolean onLogCommitted(GroupConfigEntry entry);  }### Answer:
@Test public void testIsEmpty() { GroupConfigChangeTaskHolder taskHolder = new GroupConfigChangeTaskHolder(); Assert.assertTrue(taskHolder.isEmpty()); }
@Test public void testIsEmpty2() { GroupConfigChangeTaskHolder taskHolder = new GroupConfigChangeTaskHolder( new RemoveNodeTask(new WaitableGroupConfigChangeTaskContext(), NodeId.of("B")), new FixedResultGroupConfigTaskReference(GroupConfigChangeTaskResult.OK) ); Assert.assertFalse(taskHolder.isEmpty()); }