@Test
public void testBuilder() {

  final Object[] args = new Object[]{1, 2, 3};
  final ContractDefinition expected = new ContractDefinition(payload, asList(args), Aer.ONE);
  final ContractDefinition actual = ContractDefinition.newBuilder()
      .encodedContract(payload)
      .constructorArgs(args)
      .amount(Aer.ONE)
      .build();
  assertEquals(expected, actual);
}