@@ -0,0 +1,1184 @@
+package org.to2mbn.jmccc.auth.yggdrasil.test;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport java.io.ByteArrayInputStream;%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0Aimport org.junit.Test;%0Aimport org.to2mbn.jmccc.auth.yggdrasil.YggdrasilAuthenticator;%0Aimport org.to2mbn.jmccc.auth.yggdrasil.core.yggdrasil.YggdrasilAuthenticationService;%0A%0Apublic class SerializationTest %7B%0A%0A%09@Test%0A%09public void testYggdrasilAuthenticator() throws IOException, ClassNotFoundException %7B%0A%09%09YggdrasilAuthenticator authenticator = new YggdrasilAuthenticator(%22233x233x233x233%22);%0A%0A%09%09ByteArrayOutputStream bout = new ByteArrayOutputStream();%0A%09%09ObjectOutputStream objout = new ObjectOutputStream(bout);%0A%09%09objout.writeObject(authenticator);%0A%09%09objout.flush();%0A%0A%09%09ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());%0A%09%09ObjectInputStream objin = new ObjectInputStream(bin);%0A%09%09YggdrasilAuthenticator authenticator2 = (YggdrasilAuthenticator) objin.readObject();%0A%09%09assertEquals(%22233x233x233x233%22, ((YggdrasilAuthenticationService) authenticator2.getAuthenticationService()).getClientToken());%0A%09%7D%0A%0A%7D%0A

add SerializationTest