@Test
public void testConvertToPayload() {

  final PayloadConverter<ContractDefinition> converter = new ContractDefinitionPayloadConverter();
  final ContractDefinition definition = ContractDefinition.newBuilder()
      .encodedContract(encodedContract)
      .constructorArgs("1", "2")
      .build();
  final BytesValue payload = converter.convertToPayload(definition);
  assertNotNull(payload);
}