@Test
public void shouldThrowExceptionOnPayloadWithoutVersion() {

  try {
    final String withoutVersion = Base58Utils.encodeWithCheck(new byte[]{(byte) 0xAA});
    ContractDefinition.newBuilder()
        .encodedContract(withoutVersion)
        .amount(Aer.ONE)
        .build();
    fail();
  } catch (HerajException e) {
    // then
  }
}