TinyManagement implements  Management { @Publish @Override public InitializeFrameworkResponse initializeFramework(InitializeFramework arg0) { InitializeFrameworkResponse ifr = WSHelper.makeResponse(InitializeFrameworkResponse.class, WSHelper.makeResultOK()); Version version = new Version(); version.setMajor(ECardConstants.ECARD_API_VERSION_MAJOR); version.setMinor(ECardConstants.ECARD_API_VERSION_MINOR); version.setSubMinor(ECardConstants.ECARD_API_VERSION_SUBMINOR); ifr.setVersion(version); return ifr; } TinyManagement(Environment env); @Override AddCardInfoFilesResponse addCardInfoFiles(AddCardInfoFiles arg0); @Override AddCertificateResponse addCertificate(AddCertificate arg0); @Override AddTSLResponse addTSL(AddTSL arg0); @Override AddTrustedCertificateResponse addTrustedCertificate(AddTrustedCertificate arg0); @Override AddTrustedViewerResponse addTrustedViewer(AddTrustedViewer arg0); @Override APIACLListResponse apiaclList(APIACLList arg0); @Override APIACLModifyResponse apiaclModify(APIACLModify arg0); @Override DeleteCardInfoFilesResponse deleteCardInfoFiles(DeleteCardInfoFiles arg0); @Override DeleteCertificateResponse deleteCertificate(DeleteCertificate arg0); @Override DeleteTSLResponse deleteTSL(DeleteTSL arg0); @Override DeleteTrustedViewerResponse deleteTrustedViewer(DeleteTrustedViewer arg0); @Override ExportCertificateResponse exportCertificate(ExportCertificate arg0); @Override ExportTSLResponse exportTSL(ExportTSL arg0); @Override FrameworkUpdateResponse frameworkUpdate(FrameworkUpdate arg0); @Override GetCardInfoListResponse getCardInfoList(GetCardInfoList arg0); @Override GetDefaultParametersResponse getDefaultParameters(GetDefaultParameters arg0); @Override GetDirectoryServicesResponse getDirectoryServices(GetDirectoryServices arg0); @Override GetOCSPServicesResponse getOCSPServices(GetOCSPServices arg0); @Override GetTSServicesResponse getTSServices(GetTSServices arg0); @Override GetTrustedIdentitiesResponse getTrustedIdentities(GetTrustedIdentities arg0); @Override GetTrustedViewerConfigurationResponse getTrustedViewerConfiguration(GetTrustedViewerConfiguration arg0); @Override GetTrustedViewerListResponse getTrustedViewerList(GetTrustedViewerList arg0); @Publish @Override InitializeFrameworkResponse initializeFramework(InitializeFramework arg0); @Override RegisterIFDResponse registerIFD(RegisterIFD arg0); @Override SetCardInfoListResponse setCardInfoList(SetCardInfoList arg0); @Override SetDefaultParametersResponse setDefaultParameters(SetDefaultParameters arg0); @Override SetDirectoryServicesResponse setDirectoryServices(SetDirectoryServices arg0); @Override SetOCSPServicesResponse setOCSPServices(SetOCSPServices arg0); @Override SetTSServicesResponse setTSServices(SetTSServices arg0); @Override SetTrustedViewerConfigurationResponse setTrustedViewerConfiguration(SetTrustedViewerConfiguration arg0); @Override TerminateFrameworkResponse terminateFramework(TerminateFramework arg0); @Override UnregisterIFDResponse unregisterIFD(UnregisterIFD arg0);  }
@Test public void testInitializeFramework(){ InitializeFramework initializeFramework = new InitializeFramework(); InitializeFrameworkResponse initializeFrameworkResponse = instance.initializeFramework(initializeFramework); assertEquals(ECardConstants.Major.OK, initializeFrameworkResponse.getResult().getResultMajor()); assertEquals(ECardConstants.ECARD_API_VERSION_MAJOR, initializeFrameworkResponse.getVersion().getMajor()); assertEquals(ECardConstants.ECARD_API_VERSION_MINOR, initializeFrameworkResponse.getVersion().getMinor()); assertEquals(ECardConstants.ECARD_API_VERSION_SUBMINOR, initializeFrameworkResponse.getVersion().getSubMinor()); }