@Test
public void testConvertDeletionTaskToProto() {

  YarnServerNodemanagerRecoveryProtos.DeletionServiceDeleteTaskProto proto =
      deletionTask.convertDeletionTaskToProto();
  assertEquals(ID, proto.getId());
  assertEquals(USER, proto.getUser());
  assertEquals(CONTAINER_ID, proto.getDockerContainerId());
  assertEquals(DeletionTaskType.DOCKER_CONTAINER.name(), proto.getTaskType());
}