### Question:
NcGetTransect extends AbstractRequest implements NcGetTransectRequest { protected NcGetTransect(final String serverURL) { super(serverURL); } protected  NcGetTransect(final String serverURL); @Override String getLayer(); @Override void setLayer(final String name); @Override String getCrs(); @Override void setCrs(final String crsCode); @Override String getLineString(); @Override void setLineString(final String lineString); @Override String getFormat(); @Override void setFormat(final String format); @Override String getTime(); @Override void setTime(final String time); @Override String getElevation(); @Override void setElevation(final String elevation);  }### Answer:
@Test public void testNcGetTransect() { final NcGetTransect request = new NcGetTransect("http: request.setLayer("test"); request.setCrs("CRS:84"); request.setLineString("24%25,26%27"); request.setFormat("image/png"); request.setTime("01-01-01T01:00:00Z"); request.setElevation("500"); final URL url; try { url = request.getURL(); } catch (MalformedURLException ex) { fail(ex.getLocalizedMessage()); return; } final String sUrl = url.toString(); assertTrue("was:" + sUrl, sUrl.contains("REQUEST=GetTransect")); assertTrue("was:" + sUrl, sUrl.contains("LAYER=test")); assertTrue("was:" + sUrl, sUrl.contains("CRS=CRS%3A84")); assertTrue("was:" + sUrl, sUrl.contains("LINESTRING=24%2525%2C26%2527")); assertTrue("was:" + sUrl, sUrl.contains("FORMAT=image%2Fpng")); assertTrue("was:" + sUrl, sUrl.contains("TIME=01-01-01T01%3A00%3A00Z")); assertTrue("was:" + sUrl, sUrl.contains("ELEVATION=500")); }