test_class.file: herd-code/herd-model-api/src/test/java/org/finra/herd/model/api/adapters/RegistrationDateAdapterTest.java
test_class.identifier: RegistrationDateAdapterTest
test_case.body: @Test
      public void marshalTest() throws Exception
      {
  
          // Generate a new XMLGregorianCalendar instance initialized at current time
          XMLGregorianCalendar calendar = DatatypeFactory.newInstance().newXMLGregorianCalendar();
          calendar.setYear(2020);
          calendar.setMonth(2);
          calendar.setDay(1);
          calendar.setHour(2);
          calendar.setMinute(59);
          calendar.setSecond(0);
  
          // Get its string representation
          String calendarStringRepresentation = calendar.toGregorianCalendar().toInstant().toString();
  
          // Initialize the object under test
          RegistrationDateAdapter adapter = new RegistrationDateAdapter();
  
          // marshal and compare
          assertEquals(calendarStringRepresentation, adapter.marshal(calendar));
      }
test_case.class_method_signature: RegistrationDateAdapterTest.marshalTest()
test_case.full_signature: @Test public void marshalTest()
test_case.identifier: marshalTest
test_case.invocations: newXMLGregorianCalendar newInstance setYear setMonth setDay setHour setMinute setSecond toString toInstant toGregorianCalendar assertEquals marshal
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void marshalTest()
focal_class.file: herd-code/herd-model-api/src/main/java/org/finra/herd/model/api/adapters/RegistrationDateAdapter.java
focal_class.identifier: RegistrationDateAdapter
focal_class.class_method_signature: RegistrationDateAdapter.unmarshal(String datetime)
focal_class.full_signature: @Override public XMLGregorianCalendar unmarshal(String datetime)
focal_class.identifier: unmarshal
focal_class.modifiers: @Override public
focal_class.parameters: (String datetime)
focal_class.return: XMLGregorianCalendar
focal_class.signature: XMLGregorianCalendar unmarshal(String datetime)
focal_class.class_method_signature: RegistrationDateAdapter.marshal(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.full_signature: @Override public String marshal(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.identifier: marshal
focal_class.modifiers: @Override public
focal_class.parameters: (XMLGregorianCalendar xmlGregorianCalendar)
focal_class.return: String
focal_class.signature: String marshal(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.superclass: extends XmlAdapter<String, XMLGregorianCalendar>
focal_method.body: @Override
      public String marshal(XMLGregorianCalendar xmlGregorianCalendar)
      {
          // ISO datetime format
          return xmlGregorianCalendar.toGregorianCalendar().toInstant().toString();
      }
focal_method.class_method_signature: RegistrationDateAdapter.marshal(XMLGregorianCalendar xmlGregorianCalendar)
focal_method.full_signature: @Override public String marshal(XMLGregorianCalendar xmlGregorianCalendar)
focal_method.identifier: marshal
focal_method.invocations: toString toInstant toGregorianCalendar
focal_method.modifiers: @Override public
focal_method.parameters: (XMLGregorianCalendar xmlGregorianCalendar)
focal_method.return: String
focal_method.signature: String marshal(XMLGregorianCalendar xmlGregorianCalendar)