public alluxio.grpc.JobWorkerHealth toProto() {
    alluxio.grpc.JobWorkerHealth.Builder builder = alluxio.grpc.JobWorkerHealth.newBuilder()
        .setWorkerId(mWorkerId).addAllLoadAverage(mLoadAverage).setUnfinishedTasks(mUnfinishedTasks)
        .setTaskPoolSize(mTaskPoolSize).setNumActiveTasks(mNumActiveTasks)
        .setLastUpdated(mLastUpdated).setHostname(mHostname).setVersion(mVersion);

    return builder.build();
  }
@Test
  public void testToProto() {
    JobWorkerHealth host = new JobWorkerHealth(1L,
        Lists.newArrayList(0.0, 0.0, 0.1),
        10,
        1,
        1,
        "host");

    JobWorkerHealth other = new JobWorkerHealth(host.toProto());

    assertEquals(host, other);
  }