@Test
public void serialize() {

    HessianSerializeDomain domain = new HessianSerializeDomain();
    Serializer serializer = SerializerProvider.instance().provide(Serializer.Type.HESSIAN);
    String sequence;
    try {
        sequence = serializer.serialize2String(domain);
        Assert.assertNotNull(sequence);
        HessianSerializeDomain deserialize = serializer.deserialize(sequence, HessianSerializeDomain.class);
        Assert.assertEquals(domain, deserialize);
    } catch (SerializeException e) {
        Assert.fail(e.getMessage());
    }
}