ExtensionContext { void deserialize(String value) { if (StringUtil.isEmpty(value)) { return; } final String[] extensionParts = value.split("-"); if (extensionParts.length > 0) { this.skipAnalysis = Objects.equals(extensionParts[0], "1"); } }  ExtensionContext clone(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testDeSerialize() { final ExtensionContext context = new ExtensionContext(); context.deserialize(""); Assert.assertEquals(context.serialize(), "0"); context.deserialize("0"); Assert.assertEquals(context.serialize(), "0"); context.deserialize("test"); Assert.assertEquals(context.serialize(), "0"); }