test_class.declarator: builder
test_class.modifier: private
test_class.original_string: private GsonSerializerBuilder builder;
test_class.type: GsonSerializerBuilder
test_class.var_name: builder
test_class.declarator: instance
test_class.modifier: private
test_class.original_string: private GsonSerializer instance;
test_class.type: GsonSerializer
test_class.var_name: instance
test_class.declarator: category
test_class.modifier: private
test_class.original_string: private DictionaryCategory category;
test_class.type: DictionaryCategory
test_class.var_name: category
test_class.declarator: dictionary1
test_class.modifier: private
test_class.original_string: private Dictionary dictionary1;
test_class.type: Dictionary
test_class.var_name: dictionary1
test_class.declarator: dictionary2
test_class.modifier: private
test_class.original_string: private Dictionary dictionary2;
test_class.type: Dictionary
test_class.var_name: dictionary2
test_class.declarator: event
test_class.modifier: private
test_class.original_string: private DomainEventSub event;
test_class.type: DomainEventSub
test_class.var_name: event
test_class.file: dddlib-utils/src/test/java/org/dayatang/utils/serializer/GsonSerializerTest.java
test_class.identifier: GsonSerializerTest
test_case.body: @Test
      public void registerTypeAdapter() {
          builder = builder.registerTypeAdapter(Date.class, new JsonSerializer<Date>() {
              @Override
              public JsonElement serialize(Date source, Type typeOfSource, JsonSerializationContext context) {
                  return new JsonPrimitive(source.getTime());
              }
          });
          instance = builder.build();
          String result = "{\"prop1\":\"abc\",\"lastModified\":1039536000000,\"id\":\"anId\",\"occurredOn\":1018454400000,\"version\":1}";
          assertThat(instance.serialize(event), is(result));
      }
test_case.class_method_signature: GsonSerializerTest.registerTypeAdapter()
test_case.full_signature: @Test public void registerTypeAdapter()
test_case.identifier: registerTypeAdapter
test_case.invocations: registerTypeAdapter getTime build assertThat serialize is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void registerTypeAdapter()
focal_class.declarator: gson
focal_class.modifier: private
focal_class.original_string: private Gson gson;
focal_class.type: Gson
focal_class.var_name: gson
focal_class.file: dddlib-utils/src/main/java/org/dayatang/utils/serializer/GsonSerializer.java
focal_class.identifier: GsonSerializer
focal_class.interfaces: implements ObjectSerializer
focal_class.class_method_signature: GsonSerializer.GsonSerializer()
focal_class.full_signature: public  GsonSerializer()
focal_class.identifier: GsonSerializer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  GsonSerializer()
focal_class.class_method_signature: GsonSerializer.GsonSerializer(Gson gson)
focal_class.full_signature: public  GsonSerializer(Gson gson)
focal_class.identifier: GsonSerializer
focal_class.modifiers: public
focal_class.parameters: (Gson gson)
focal_class.signature:  GsonSerializer(Gson gson)
focal_class.class_method_signature: GsonSerializer.serialize(Object anObject)
focal_class.full_signature: @Override public String serialize(Object anObject)
focal_class.identifier: serialize
focal_class.modifiers: @Override public
focal_class.parameters: (Object anObject)
focal_class.return: String
focal_class.signature: String serialize(Object anObject)
focal_class.class_method_signature: GsonSerializer.deserialize(String serializedString, Class<T> objectClass)
focal_class.full_signature: @Override public T deserialize(String serializedString, Class<T> objectClass)
focal_class.identifier: deserialize
focal_class.modifiers: @Override public
focal_class.parameters: (String serializedString, Class<T> objectClass)
focal_class.return: T
focal_class.signature: T deserialize(String serializedString, Class<T> objectClass)
focal_method.body: @Override
      public String serialize(Object anObject) {
          return gson.toJson(anObject);
      }
focal_method.class_method_signature: GsonSerializer.serialize(Object anObject)
focal_method.full_signature: @Override public String serialize(Object anObject)
focal_method.identifier: serialize
focal_method.invocations: toJson
focal_method.modifiers: @Override public
focal_method.parameters: (Object anObject)
focal_method.return: String
focal_method.signature: String serialize(Object anObject)