MetatableServiceImpl implements IMetatableService { @Override public MetatableDTO saveMetatable(MetatableDTO metatable) { return transformer .metafileEntityToDTO(repository.save(transformer.metafileDTOtoEntity(metatable))); } MetatableServiceImpl(); @Override MetatableDTO getMetatableMaster(String metatableUuid); @Override MetatableDTO saveMetatable(MetatableDTO metatable); @Autowired void setRepository(MetatableRepository repository);  }
@Test public void saveMetatable() throws Exception { MetatableDTO metatableDTO = TestHelper .getMetatableDTO(metatableSnapShot2Uuid, MavenUtil.getCurrentVersion(), MetatableType.MASTER, lastUpdateTimeStamp); MetatableDTO savedMetatableDTO = service.saveMetatable(metatableDTO); assertNotNull(savedMetatableDTO); }