  @Test
  public void testReadRequest() {

    LogName name = LogName.of("test");

    long start = 100;
    int total = 5;
    LogServiceRequestProto proto = LogServiceProtoUtil.toReadLogRequestProto(name, start, total);
    ReadLogRequestProto request = proto.getReadNextQuery();
    assertEquals(name.getName(), request.getLogName().getName());
    assertEquals(100, request.getStartRecordId());
    assertEquals(5, request.getNumRecords());

  }