### Question:
TransMetaJsonSerializer extends AbstractMetaJsonSerializer<TransMeta> { protected BaseStepMeta getBaseStepMetaFromStepMeta( StepMeta stepMeta ) { BaseStepMeta baseStepMeta = new BaseStepMeta(); baseStepMeta.setParentStepMeta( stepMeta ); if ( stepMeta != null ) { StepMetaInterface smi = stepMeta.getStepMetaInterface(); if ( smi instanceof BaseStepMeta ) { baseStepMeta = (BaseStepMeta) smi; } } return baseStepMeta; } TransMetaJsonSerializer( Class<TransMeta> aClass );  TransMetaJsonSerializer( JavaType javaType );  TransMetaJsonSerializer( Class<?> aClass, boolean b );   }### Answer:
@Test public void testGetBaseStepMetaFromStepMetaNull() throws Exception { BaseStepMeta baseStepMeta = serializer.getBaseStepMetaFromStepMeta( null ); assertNotNull( baseStepMeta ); assertNull( baseStepMeta.getParentStepMeta() ); }