### Question:
BookieServiceInfo { @Override public String toString() { return "BookieServiceInfo{" + "properties=" + properties + ", endpoints=" + endpoints + '}'; } BookieServiceInfo(Map<String, String> properties, List<Endpoint> endpoints);  BookieServiceInfo(); Map<String, String> getProperties(); List<Endpoint> getEndpoints(); void setProperties(Map<String, String> properties); void setEndpoints(List<Endpoint> endpoints); @Override String toString(); static final BookieServiceInfo EMPTY; static final Supplier<BookieServiceInfo> NO_INFO; }### Answer:
@Test public void testDeserializeBookieServiceInfo() throws Exception { BookieId bookieId = BookieId.parse("127.0.0.1:3181"); { BookieServiceInfo expected = BookieServiceInfoUtils.buildLegacyBookieServiceInfo(bookieId.toString()); BookieServiceInfo deserialized = deserializeBookieServiceInfo(bookieId, null); assertBookieServiceInfoEquals(expected, deserialized); } { BookieServiceInfo expected = BookieServiceInfoUtils.buildLegacyBookieServiceInfo(bookieId.toString()); BookieServiceInfo deserialized = deserializeBookieServiceInfo(bookieId, new byte[]{}); assertBookieServiceInfoEquals(expected, deserialized); } }