@Override
    public String toString() {

        return MoreObjects.toStringHelper(getClass())
                .add("flags", flags)
                .add("type", type)
                .add("peerDistinguisher", Arrays.toString(peerDistinguisher))
                .add("peerAddress", peerAddress.getHostAddress())
                .add("peerAs", peerAs)
                .add("peerBgpId", peerBgpId)
                .add("seconds", seconds)
                .add("microseconds", microseconds)
                .toString();
    }
@Test
    public void testToStringBmp() throws Exception {
        BmpPeer bmpPeer = deserializer.deserialize(headerBytes, 0, headerBytes.length);
        String str = bmpPeer.toString();

        assertTrue(StringUtils.contains(str, "flags=" + flags));
        assertTrue(StringUtils.contains(str, "type=" + type));
        assertTrue(StringUtils.contains(str, "peerDistinguisher=" + Arrays.toString(peerDistinguisher)));
        assertTrue(StringUtils.contains(str, "peerAddress=" + peerAddress.getHostAddress()));
        assertTrue(StringUtils.contains(str, "peerAs=" + peerAs));
        assertTrue(StringUtils.contains(str, "peerBgpId=" + peerBgpId));
        assertTrue(StringUtils.contains(str, "seconds=" + seconds));
        assertTrue(StringUtils.contains(str, "microseconds=" + microseconds));
    }