### Question:
DiffEntryWrapper { public boolean isAllDeletedEdits() { return editList.stream().allMatch(edit -> edit.getType() == Type.DELETE); }  boolean isDeleted(); boolean isAllDeletedEdits(); String getNewPath(); String getAbsoluteNewPath(); File getNewFile();  }### Answer:
@Test public void testIsAllDeletedEdits() { Edit edit1 = PowerMockito.mock(Edit.class); Edit edit2 = PowerMockito.mock(Edit.class); PowerMockito.when(edit1.getType()).thenReturn(Type.DELETE); PowerMockito.when(edit2.getType()).thenReturn(Type.DELETE); DiffEntryWrapper wrapper = DiffEntryWrapper.builder() .editList(Arrays.asList(edit1, edit2)) .build(); Assert.assertTrue(wrapper.isAllDeletedEdits()); }