### Question:
RepoSerializer { public void serialize() throws KettleException { String xml = MetaXmlSerializer.serialize( from( stepMetaInterface ) ); rep.saveStepAttribute( idTrans, idStep, REPO_TAG, xml ); } private  RepoSerializer( StepMetaInterface stepMetaInterface, Repository rep, ObjectId idTrans, ObjectId idStep ); static Builder builder(); void serialize(); void deserialize();  }### Answer:
@Test public void testSerialize() throws KettleException { String serialized = serialize( from( stepMeta ) ); RepoSerializer .builder() .repo( repo ) .stepId( stepId ) .transId( transId ) .stepMeta( stepMeta ) .serialize(); verify( repo, times( 1 ) ) .saveStepAttribute( transId, stepId, "step-xml", serialized ); }