}
@SuppressWarnings("serial")
@Override
protected void prepareResources() {
SeamAutowire seamAutowire = getSeamAutowire();
seamAutowire.use("session", getSession()).use("identity", mockIdentity)
.use("translationWorkspaceManager", transWorspaceManager)
.use("entityManager", super.getEm())
.useImpl(CopyTransServiceImpl.class)
.useImpl(TranslationServiceImpl.class)
.useImpl(LocaleServiceImpl.class)
.useImpl(DocumentServiceImpl.class)
.useImpl(ResourceUtils.class)
.useImpl(SecurityServiceImpl.class)
.useImpl(ValidationServiceImpl.class)
.useImpl(VersionStateCacheImpl.class)
.useImpl(TranslationStateCacheImpl.class);
TranslatedDocResourceService translatedDocResourceService =
seamAutowire.autowire(TranslatedDocResourceService.class);
SourceDocResourceService sourceDocResourceService =
seamAutowire.autowire(SourceDocResourceService.class);
resources.add(sourceDocResourceService);
resources.add(translatedDocResourceService);
}