@Test
public void equals() {

    Signer c1 = Signer.calledByEntry(acctScriptHash);
    Signer c2 = Signer.calledByEntry(acctScriptHash);
    assertThat(c1, equalTo(c2));
    c1 = new Signer.Builder()
            .account(acctScriptHash)
            .allowedGroups(groupPubKey1, groupPubKey2)
            .allowedContracts(contract1, contract2)
            .scopes(WitnessScope.CALLED_BY_ENTRY)
            .build();
    c2 = new Signer.Builder()
            .account(acctScriptHash)
            .allowedGroups(groupPubKey1, groupPubKey2)
            .allowedContracts(contract1, contract2)
            .scopes(WitnessScope.CALLED_BY_ENTRY)
            .build();
    assertThat(c1, equalTo(c2));
}