### Question:
SchemaRegistryServiceInfo { public static SchemaRegistryServiceInfo with(String baseUrl) { return new SchemaRegistryServiceInfo(VERSION, Collections.singletonList(baseUrl)); } private  SchemaRegistryServiceInfo(
            @JsonProperty("version") String version,
            @JsonProperty("baseUrls") List<String> baseUrls); String getVersion(); List<String> getBaseUrls(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static SchemaRegistryServiceInfo with(String baseUrl); static SchemaRegistryServiceInfo with(List<String> baseUrls);  }### Answer:
@Test(expected=Exception.class) public void testInstantiationFailsOnInvalidArguments1() throws Exception { SchemaRegistryServiceInfo.with((String)null); }
@Test(expected=Exception.class) public void testInstantiationFailsOnInvalidArguments2() throws Exception { SchemaRegistryServiceInfo.with((List<String>)null); }
@Test(expected=Exception.class) public void testInstantiationFailsOnInvalidArguments3() throws Exception { SchemaRegistryServiceInfo.with(Collections.singletonList(null)); }
@Test public void testSerializedToJsonAndBack() throws Exception { SchemaRegistryServiceInfo origin = SchemaRegistryServiceInfo.with( Arrays.asList("url1", "url2", "url3")); String json = JsonMapper.toJson(origin); Assert.assertNotNull(json); SchemaRegistryServiceInfo deserialized = JsonMapper.jsonToObject(json, SchemaRegistryServiceInfo.class); Assert.assertNotNull(deserialized); Assert.assertEquals(origin, deserialized); }