### Question:
MiniAfirmaApplet extends JApplet implements MiniAfirma { @Override public URL getCodeBase() { URL codebase = null; try { codebase = super.getCodeBase(); } catch (final Exception e) { } if (codebase != null) { return codebase; } try { return new URL( MiniAfirmaApplet.class.getResource("/miniappletmessages.properties").toString().replace("/miniappletmessages.properties", "") ); } catch (final MalformedURLException e) { throw new IllegalStateException("No se puede determinar el codebase del Aeplet: " + e, e); } }  @Override void setStickySignatory(final boolean sticky); @Override String sign(final String algorithm,
					   final String format,
					   final String extraParams); @Override String coSign(final String dataB64,
			             final String algorithm,
			             final String format,
			             final String extraParams); @Override String counterSign(final String algorithm,
			                  final String format,
			                  final String extraParams); @Override boolean saveDataToFile(final String title,
			                      final String fileName,
			                      final String extension,
			                      final String description); @Override String signAndSaveToFile(final String op, final String algorithm, final String format,
			final String extraParams, final String fileName); @Override String getFileNameContentBase64(final String title,
			                               final String extensions,
			                               final String description,
			                               final String filePath); @Override String[] getMultiFileNameContentBase64(final String title,
			                                      final String extensions,
			                                      final String description,
			                                      final String filePath); @Override String getTextFromBase64(final String base64Data, final String charset); @Override String getBase64FromText(final String plainText, final String charset); @Override URL getCodeBase(); @Override void init(); @Override String getErrorMessage(); @Override String getErrorType(); @Override void setKeyStore(final String ksType); @Override String echo(); @Override String getRemainingData(); @Override void addData(final String data); @Override String getCurrentLog(); @Override String signBatch(final String batchB64,
			                final String batchPreSignerUrl,
			                final String batchPostSignerUrl,
			                final String extraParams); @Override String selectCertificate(final String extraParams);  }### Answer:
@SuppressWarnings("static-method") @Test public void testLocalCodebase() { System.out.println(new MiniAfirmaApplet().getCodeBase().toString()); }