### Question:
SmooksEdFi2SLITransformer extends EdFi2SLITransformer { @Override public List<List<SimpleEntity>> handle(List<NeutralRecord> items, AbstractMessageReport report, ReportStats reportStats) { return null; }  @Override List<SimpleEntity> transform(NeutralRecord item, AbstractMessageReport report, ReportStats reportStats); Map<String, Smooks> getSmooksConfigs(); void setSmooksConfigs(Map<String, Smooks> smooksConfigs); @Override List<List<SimpleEntity>> handle(List<NeutralRecord> items, AbstractMessageReport report,
            ReportStats reportStats); @Override String getStageName();  }### Answer:
@SuppressWarnings("deprecation") @Test public void testCreateAssessmentEntity() { EntityConfigFactory entityConfigurations = new EntityConfigFactory(); MongoEntityRepository mockedEntityRepository = mock(MongoEntityRepository.class); NeutralRecord assessmentRC = createAssessmentNeutralRecord(true); entityConfigurations.setResourceLoader(new DefaultResourceLoader()); entityConfigurations.setSearchPath("classpath:smooksEdFi2SLI/"); transformer.setEntityRepository(mockedEntityRepository); transformer.setEntityConfigurations(entityConfigurations); DeterministicIdResolver mockDidResolver = Mockito.mock(DeterministicIdResolver.class); transformer.setDIdResolver(mockDidResolver); List<Entity> le = new ArrayList<Entity>(); le.add(createAssessmentEntity(true)); when( mockedEntityRepository.findByQuery(eq("assessment"), Mockito.any(Query.class), eq(0), eq(0))).thenReturn(le); AbstractMessageReport errorReport = new DummyMessageReport(); ReportStats reportStats = new SimpleReportStats(); List<SimpleEntity> res = transformer.handle(assessmentRC, errorReport, reportStats); verify(mockedEntityRepository).findByQuery(eq("assessment"), Mockito.any(Query.class), eq(0), eq(0)); Assert.assertNotNull(res); Assert.assertEquals(ASSESSMENT_TITLE, res.get(0).getBody().get("assessmentTitle")); Assert.assertEquals(TENANT_ID, res.get(0).getMetaData().get(TENANT_ID_FIELD)); Assert.assertEquals(STUDENT_ID, res.get(0).getMetaData().get(EXTERNAL_ID_FIELD)); }