public static <T extends VerifiableEntity>Deserializer roundtripVerifiableEntity(final T originalEntity,final AccountLookup accountLookup){
  originalEntity.sign();
  final JsonSerializer jsonSerializer=new JsonSerializer(true);
  originalEntity.serialize(jsonSerializer);
  return new JsonDeserializer(jsonSerializer.getObject(),new DeserializationContext(accountLookup));
}

public static < T extends VerifiableEntity > Deserializer roundtripVerifiableEntity ( final T originalEntity , final AccountLookup accountLookup ) { originalEntity . sign ( ) ; final JsonSerializer jsonSerializer = new JsonSerializer ( true ) ; originalEntity . serialize ( jsonSerializer ) ; return new JsonDeserializer ( jsonSerializer . getObject ( ) , new DeserializationContext ( accountLookup ) ) ; }
serializes originalentity and returns a deserializer that can deserialize it .
