@Test
public void testDeleteOnException() {

    YangInstanceIdentifier path = CarsModel.BASE_PATH;
    doThrow(SchemaValidationFailedException.class).when(mockModification).delete(path);
    pruningDataTreeModification.delete(path);
    verify(mockModification, times(1)).delete(path);
}