@Test
public void deleteValidationErrors() {

    when(validationService.validateForDelete(any(Path.class))).thenReturn(Arrays.asList(new ValidationMessage()));
    presenter.onDelete();
    verify(validationService,
           times(1)).validateForDelete(any(Path.class));
    verify(validationPopup,
           times(1)).showDeleteValidationMessages(any(Command.class),
                                                  any(Command.class),
                                                  anyListOf(ValidationMessage.class));
}