@Test
  public void verifyFromMapDefaultFields() {
    PortabilityJob job = PortabilityJob.fromMap(MANDATORY_FIELDS);

    assertThat(job.state()).isEqualTo(State.NEW);
    assertThat(job.transferMode()).isEqualTo(TransferMode.DATA_TRANSFER);

    // Even though toMap adds a default encryptionScheme value, PortabilityJob instance does not have it.
    assertThat(job.jobAuthorization().encryptionScheme()).isNull();
  }
Tests serialization and deserialization of a {@link PortabilityJob}.
portability-spi-cloud/src/test/java/org/datatransferproject/spi/cloud/types/PortabilityJobTest.java