@Override
    public BitcoinSerializer withProtocolVersion(int protocolVersion) {
        return protocolVersion == this.protocolVersion ?
                this : new BitcoinSerializer(network, protocolVersion);
    }
@Test
    public void testEquals() {
        assertTrue(MAINNET.getDefaultSerializer().equals(MAINNET.getDefaultSerializer()));
        assertFalse(MAINNET.getDefaultSerializer().equals(TestNet3Params.get().getDefaultSerializer()));
        assertFalse(MAINNET.getDefaultSerializer().equals(MAINNET.getDefaultSerializer().withProtocolVersion(0)));
    }