@Test
public void testConvertToPayload() {

  final PayloadConverter<Vote> converter = new VotePayloadConverter();
  final Vote vote = Vote.newBuilder()
      .voteId(randomUUID().toString())
      .candidates(Arrays.asList(new String[] {randomUUID().toString(), randomUUID().toString()}))
      .build();
  final BytesValue payload = converter.convertToPayload(vote);
  assertNotNull(payload);
}