test_class.declarator: testee
test_class.modifier: @InjectMocks
  	private
test_class.original_string: @InjectMocks
  	private CustomDateSerializer testee;
test_class.type: CustomDateSerializer
test_class.var_name: testee
test_class.declarator: gen
test_class.modifier: @Mock
  	private
test_class.original_string: @Mock
  	private JsonGenerator gen;
test_class.type: JsonGenerator
test_class.var_name: gen
test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule
  	public
test_class.original_string: @Rule
  	public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.file: nimbus-core/src/test/java/com/antheminc/oss/nimbus/support/json/CustomDateSerializerTest.java
test_class.identifier: CustomDateSerializerTest
test_case.body: @Test
  	public void t1_serialize() throws IOException {
  
  		Date date = new GregorianCalendar(2018, Calendar.FEBRUARY, 11).getTime();
  
  		String expected = (new DateTime(date).withZone(DateTimeZone.UTC).toDateTimeISO().toString());
  
  		Mockito.doNothing().when(this.gen).writeString(Mockito.anyString());
  		this.testee.serialize(date, gen, null);
  		ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);
  		Mockito.verify(this.gen).writeString(captor.capture());
  
  		Assert.assertEquals(expected, captor.getValue());
  	}
test_case.class_method_signature: CustomDateSerializerTest.t1_serialize()
test_case.full_signature: @Test public void t1_serialize()
test_case.identifier: t1_serialize
test_case.invocations: getTime toString toDateTimeISO withZone writeString when doNothing anyString serialize forClass writeString verify capture assertEquals getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void t1_serialize()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: serializer
focal_class.modifier: private final
focal_class.original_string: private final CustomLocalDateTimeSerializer serializer;
focal_class.type: CustomLocalDateTimeSerializer
focal_class.var_name: serializer
focal_class.file: nimbus-core/src/main/java/com/antheminc/oss/nimbus/support/json/CustomDateSerializer.java
focal_class.identifier: CustomDateSerializer
focal_class.class_method_signature: CustomDateSerializer.CustomDateSerializer()
focal_class.full_signature: public  CustomDateSerializer()
focal_class.identifier: CustomDateSerializer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  CustomDateSerializer()
focal_class.class_method_signature: CustomDateSerializer.CustomDateSerializer(Class<Date> t)
focal_class.full_signature: protected  CustomDateSerializer(Class<Date> t)
focal_class.identifier: CustomDateSerializer
focal_class.modifiers: protected
focal_class.parameters: (Class<Date> t)
focal_class.signature:  CustomDateSerializer(Class<Date> t)
focal_class.class_method_signature: CustomDateSerializer.serialize(Date value, JsonGenerator gen, SerializerProvider provider)
focal_class.full_signature: @Override public void serialize(Date value, JsonGenerator gen, SerializerProvider provider)
focal_class.identifier: serialize
focal_class.modifiers: @Override public
focal_class.parameters: (Date value, JsonGenerator gen, SerializerProvider provider)
focal_class.return: void
focal_class.signature: void serialize(Date value, JsonGenerator gen, SerializerProvider provider)
focal_class.superclass: extends StdSerializer<Date>
focal_method.body: @Override
  	public void serialize(Date value, JsonGenerator gen, SerializerProvider provider) throws IOException {
  	 	if(value == null)
      		return;
      	
  	 	this.serializer.serialize(LocalDateTime.ofInstant(value.toInstant(), ZoneOffset.UTC.normalized()), gen, provider);
  	}
focal_method.class_method_signature: CustomDateSerializer.serialize(Date value, JsonGenerator gen, SerializerProvider provider)
focal_method.full_signature: @Override public void serialize(Date value, JsonGenerator gen, SerializerProvider provider)
focal_method.identifier: serialize
focal_method.invocations: serialize ofInstant toInstant normalized
focal_method.modifiers: @Override public
focal_method.parameters: (Date value, JsonGenerator gen, SerializerProvider provider)
focal_method.return: void
focal_method.signature: void serialize(Date value, JsonGenerator gen, SerializerProvider provider)