### Question:
GetDependenciesCommand extends AbstractRestCommand { @Override public String run() { LOGGER.debug("run: entity={}, version={}", entity, version); Error.reset(); Error.push(getClass().getSimpleName()); if (entity != null) { Error.push(entity); } if (version != null) { Error.push(version); } try { Response r = getMetadata().getDependencies(entity, version); return r.toJson().toString(); } catch (Error e) { return e.toString(); } catch (Exception e) { LOGGER.error("Failure: {}", e); return Error.get(RestMetadataConstants.ERR_REST_ERROR, e.toString()).toString(); } } GetDependenciesCommand(String entity, String version);  GetDependenciesCommand(Metadata metadata, String entity, String version); @Override String run();  }### Answer:
@Test public void execute() { GetDependenciesCommand command = new GetDependenciesCommand(metadata, null, null); String output = command.run(); Assert.assertNotNull(output); }