test_class.declarator: gson = new SampleDomainGsonFactory().create()
test_class.modifier: final
test_class.original_string: final Gson gson = new SampleDomainGsonFactory().create();
test_class.type: Gson
test_class.var_name: gson
test_class.file: inventory-aggregate-root/src/test/java/org/myeslib/example/SampleDomainGsonFactoryTest.java
test_class.identifier: SampleDomainGsonFactoryTest
test_case.body: @Test
  	public void aggregateRootHistory() {
  
  		UUID id = UUID.randomUUID();
  		UUID uowId1 = UUID.randomUUID();
  		UUID uowId2 = UUID.randomUUID();
  		
  		Command command1 = new IncreaseInventory(UUID.randomUUID(), id, 2, 0L);
  		Event event11 = new InventoryIncreased(id, 1);
  		Event event12 = new InventoryIncreased(id, 1);	
  		UnitOfWork uow1 = UnitOfWork.create(uowId1, command1, Arrays.asList(event11, event12));
  
  		Command command2 = new IncreaseInventory(UUID.randomUUID(), id, 10, 0L);
  		Event event21 = new InventoryIncreased(id, 1);
  		Event event22 = new InventoryIncreased(id, 1);	
  		UnitOfWork uow2 = UnitOfWork.create(uowId2, command2, Arrays.asList(event21, event22));
  
  		AggregateRootHistory arh = new AggregateRootHistory();
  		
  		arh.add(uow1);
  		arh.add(uow2);
  		
  		String asString = gson.toJson(arh);
  
  		AggregateRootHistory arhFromJson = gson.fromJson(asString, AggregateRootHistory.class);
  		
  		assertEquals(arh, arhFromJson);
  	
  	}
test_case.class_method_signature: SampleDomainGsonFactoryTest.aggregateRootHistory()
test_case.full_signature: @Test public void aggregateRootHistory()
test_case.identifier: aggregateRootHistory
test_case.invocations: randomUUID randomUUID randomUUID randomUUID create asList randomUUID create asList add add toJson fromJson assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void aggregateRootHistory()
focal_class.declarator: gson
focal_class.modifier: private final
focal_class.original_string: private final Gson gson;
focal_class.type: Gson
focal_class.var_name: gson
focal_class.file: inventory-aggregate-root/src/main/java/org/myeslib/example/SampleDomainGsonFactory.java
focal_class.identifier: SampleDomainGsonFactory
focal_class.class_method_signature: SampleDomainGsonFactory.SampleDomainGsonFactory()
focal_class.full_signature: public  SampleDomainGsonFactory()
focal_class.identifier: SampleDomainGsonFactory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SampleDomainGsonFactory()
focal_class.class_method_signature: SampleDomainGsonFactory.create()
focal_class.full_signature: public Gson create()
focal_class.identifier: create
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Gson
focal_class.signature: Gson create()
focal_method.body: public Gson create() {
  		return gson;
  	}
focal_method.class_method_signature: SampleDomainGsonFactory.create()
focal_method.full_signature: public Gson create()
focal_method.identifier: create
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Gson
focal_method.signature: Gson create()