MwModule { public CkInfo getInfo() throws CryptokiException { return mw.getInfo(); } MwModule(MiddlewareSALConfig mwSALConfig); void initialize(); void destroy(); CkInfo getInfo(); List<MwSlot> getSlotList(TokenState tokenState); List<MwSlot> getSlotList(boolean tokenPresent); MiddlewareSALConfig getMiddlewareSALConfig(); long waitForSlotEvent(int flag);  }
@Test public void testGetInfo() throws CryptokiException { MwModule module = new MwModule(mwConfig); module.initialize(); module.getInfo(); module.destroy(); }