### Question:
IdentifierExtension extends Extension { IdentifierExtension() { } IdentifierExtension();  IdentifierExtension(String host, String identifier); AuthenticationBlock[] getAuthenticationBlocks(); void setAuthenticationBlocks(AuthenticationBlock[] authenticationBlocks); boolean equals(Object obj); int hashCode(); int getId(); String getHost(); String getIdentifier(); static IdentifierExtension findFirst(Collection<? extends Extension> extensions); static Collection<IdentifierExtension> findAll(Collection<? extends Extension> extensions);  }### Answer:
@Test public void testIdentifierExtension() throws Exception { IdentifierExtension original = new IdentifierExtension("1.2.3.4", "id1"); byte[] bytes = original.serialize(); IdentifierExtension deserialized = (IdentifierExtension)Extension.deserialize(bytes); assert original.getIdentifier().equals(deserialized.getIdentifier()); assert original.getHost().equals(deserialized.getHost()); }