@Test
public void testConvertProtoToDeletionTask() throws Exception {

  DeletionService deletionService = mock(DeletionService.class);
  DeletionServiceDeleteTaskProto.Builder protoBuilder =
      DeletionServiceDeleteTaskProto.newBuilder();
  int id = 0;
  protoBuilder.setId(id);
  DeletionServiceDeleteTaskProto proto = protoBuilder.build();
  DeletionTask deletionTask =
      NMProtoUtils.convertProtoToDeletionTask(proto, deletionService);
  assertEquals(DeletionTaskType.FILE, deletionTask.getDeletionTaskType());
  assertEquals(id, deletionTask.getTaskId());
}