Tracker { public Task addItem(Task item){ item.setId(this.generateId()); if(this.position == this.items.length-1) { this.position = 0; } this.items[position++] = item; return item; }  Task addItem(Task item); Task findById(String id); Task[] getAll(); Task[] findByFilter(String name); Task[] findByFilter(String name, String decr); void deleteItem(Task item); void updateItem(Task item); void addCommentary(Task item, String comm); String getCommentary(Task item); String getCommentary(Task item, int pos);  }
@Test public void whenAddItemThatAddInMassive(){ Tracker track = new Tracker(); Task task1 = new Task("pervaja zajavka","eto pervaja zajavka"); Assert.assertNotNull(track.addItem(task1)); }