UserHelper extends AbstractHelper { public static synchronized UserHelper getInstance() { if (instance == null) { log.warning("initInstance not called before using UserHelper!"); throw new IllegalStateException("initInstance not called before using UserHelper!"); } return instance; } private  UserHelper(String fileStoragePrefix); static synchronized UserHelper initInstance(SystemParameters systemParamsResource,
      List<IssuerParameters> issuerParamsList, String fileStoragePrefix,
      List<CredentialSpecification> credSpecList, List<InspectorPublicKey> inspectorPublicKeyList,
      List<RevocationAuthorityParameters> revocationAuthorityParametersList); static synchronized UserHelper initInstanceForService(CryptoEngine cryptoEngine,
      String fileStoragePrefix); static synchronized boolean isInit(); static synchronized UserHelper getInstance(); static synchronized void resetInstance(); UserAbcEngine getEngine(); void forceLoadSoftwareSmartcard(URI secretUID); static boolean WIPE_STOARAGE_FILES; public CardStorage cardStorage; public CredentialManager credentialManager; public CryptoEngineUser cryptoEngineUser; }
@Test(expected = IllegalStateException.class) public void test_notInit() throws Exception { System.out.println("test_notInit!"); UserHelper.getInstance(); }