### Question:
EngineMetaUtils { public static boolean isJobOrTransformation( EngineMetaInterface engineMetaInterface ) { if ( engineMetaInterface == null || engineMetaInterface.getRepositoryElementType() == null ) { return false; } RepositoryObjectType objectType = engineMetaInterface.getRepositoryElementType(); return RepositoryObjectType.TRANSFORMATION.equals( objectType ) || RepositoryObjectType.JOB.equals( objectType ); }  static boolean isJobOrTransformation( EngineMetaInterface engineMetaInterface );  }### Answer:
@Test public void isJobOrTransformation_withJob() { JobMeta jobInstance = new JobMeta(); assertTrue( EngineMetaUtils.isJobOrTransformation( jobInstance ) ); }
@Test public void isJobOrTransformation_withTransformation() { TransMeta transfromataionInstance = new TransMeta(); assertTrue( EngineMetaUtils.isJobOrTransformation( transfromataionInstance ) ); }
@Test public void isJobOrTransformationReturnsFalse_withDatabase() { EngineMetaInterface testMetaInstance = mock( EngineMetaInterface.class ); when( testMetaInstance.getRepositoryElementType() ).thenReturn( RepositoryObjectType.DATABASE ); assertFalse( EngineMetaUtils.isJobOrTransformation( testMetaInstance ) ); }