### Question:
ELMoRESTAdapter extends AbstractRESTAdapter { public URL getUrl(String path) throws MalformedURLException { return new URL(String.format(URL_FORMAT, domain, port, path, layerOutput.getPath())); } ELMoRESTAdapter(ELMoLayerOutput layerOutput, String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout);  ELMoRESTAdapter(ELMoLayerOutput layerOutput, String domain, int port); @Override double[] encodeImpl(String data); @Override double[][] encodeImpl(String[] tokensOfSentence); @Override double[][][] encodeImpl(String[][] tokensOfDocument2D); @Override SerializationProvider getSerializationProvider(); @Override DeserializationProvider getDeserializationProvider(); URL getUrl(String path); static final int DEFAULT_READ_TIMEOUT; static final int DEFAULT_CONNECT_TIMEOUT; static final long DEFAULT_EMBEDDING_VECTOR_SIZE; static final String URL_FORMAT; static final String SENTENCE_ENDPOINT; static final String SENTENCES_ENDPOINT; }### Answer:
@Test public void getUrlTest() throws IOException { URL urlTop = elMoRESTAdapterTop.getUrl(TEST_PATH); URL urlMiddle = elMoRESTAdapterMiddle.getUrl(TEST_PATH); URL urlBottom = elMoRESTAdapterBottom.getUrl(TEST_PATH); URL urlAverage = elMoRESTAdapterAverage.getUrl(TEST_PATH); assertThat(urlTop.toExternalForm(), equalTo(URL_TOP)); assertThat(urlMiddle.toExternalForm(), equalTo(URL_MIDDLE)); assertThat(urlBottom.toExternalForm(), equalTo(URL_BOTTOM)); assertThat(urlAverage.toExternalForm(), equalTo(URL_AVERAGE)); }