BaseCommand { public void setCommandURL(String commandURL) { this.commandURL = commandURL; }  void callGetService(); String getJson(); void callPostService(T object); void callDeleteService(T object); void callDownloadFile(String fileName); String getCommandURL(); void setCommandURL(String commandURL); static String errorConnection; static String messageConnection; }
@Test public void testSetCommandURL() { String value = "jobs"; cmd.setCommandURL(value); boolean contains = cmd.getCommandURL().contains(value); Assert.assertTrue(contains); }