@Test
public void testConvertDeletionTaskToProto() throws Exception {

  DeletionServiceDeleteTaskProto proto =
      deletionTask.convertDeletionTaskToProto();
  assertEquals(ID, proto.getId());
  assertEquals(USER, proto.getUser());
  assertEquals(SUBDIR, new Path(proto.getSubdir()));
  assertEquals(BASEDIR, new Path(proto.getBasedirs(0)));
  assertEquals(1, proto.getBasedirsCount());
}