### Question:
SyncBaseServiceImpl extends DefaultCrudService<SyncBase> implements
  SyncBaseService { public SyncBase load(String syncType, String syncCode) { return this.syncBaseDao.load(syncType, syncCode); }  SyncBaseDao getSyncBaseDao(); void setSyncBaseDao(SyncBaseDao syncBaseDao); boolean hadSync(String syncType, String syncCode); SyncBase load(String syncType, String syncCode); boolean hadGenerate(String syncTo, Long id); int updateStatus(Long id, int toStatus); int updateStatus(Long[] ids, int toStatus); int updateStatus2New(String syncType, List<String> syncCodes); int updateNewStatus2Done4ExcludeCode(String syncType,
                                              List<String> excludeSyncCodes);  }### Answer:
@Test public void testLoadBySyncTypeAndId() { SyncBase syncBase = createInstance(null); String syncId = UUID.randomUUID().toString(); syncBase.setSyncCode(syncId); Assert.assertNull(syncBase.getId()); this.syncBaseService.save(syncBase); Assert.assertNotNull(syncBase.getId()); SyncBase syncBase2 = this.syncBaseService.load("syncType", syncId); Assert.assertNotNull(syncBase2); Assert.assertEquals(syncBase.getId(), syncBase2.getId()); }