### Question:
Dstu3ImmunizationFhirToDhisTransformerUtils extends AbstractImmunizationFhirToDhisTransformerUtils { @Override public int getMaxDoseSequence( @Nullable IDomainResource immunization ) throws TransformerException { if ( immunization == null ) { return 0; } return ((Immunization) immunization).getVaccinationProtocol().stream().map( Immunization.ImmunizationVaccinationProtocolComponent::getDoseSequence ) .max( Comparator.naturalOrder() ).orElse( 0 ); } Dstu3ImmunizationFhirToDhisTransformerUtils( @Nonnull ScriptExecutionContext scriptExecutionContext ); @Nonnull @Override Set<FhirVersion> getFhirVersions(); @Override int getMaxDoseSequence( @Nullable IDomainResource immunization );  }### Answer:
@Test public void testMaxDoseSequence() { final Immunization immunization = new Immunization(); immunization.addVaccinationProtocol().setDoseSequence( 10 ); immunization.addVaccinationProtocol().setDoseSequence( 12 ); immunization.addVaccinationProtocol().setDoseSequence( 8 ); Assert.assertEquals( 12, utils.getMaxDoseSequence( immunization ) ); }