### Question:
UpdateEntityInfoCommand extends AbstractRestCommand { @Override public String run() { LOGGER.debug("updateEntityInfo {}", entity); Error.reset(); Error.push(getClass().getSimpleName()); Error.push(entity); try { EntityInfo ei = getJsonTranslator().parse(EntityInfo.class, JsonUtils.json(info)); if (!ei.getName().equals(entity)) { throw Error.get(RestMetadataConstants.ERR_NO_NAME_MATCH, entity); } Metadata md = getMetadata(); md.updateEntityInfo(ei); ei = md.getEntityInfo(entity); return getJSONParser().convert(ei).toString(); } catch (Error e) { return e.toString(); } catch (Exception e) { LOGGER.error("Failure: {}", e); return Error.get(RestMetadataConstants.ERR_REST_ERROR, e.toString()).toString(); } } UpdateEntityInfoCommand(String entity, String info);  UpdateEntityInfoCommand(Metadata metadata, String entity, String info); @Override String run();  }### Answer:
@Test public void execute() { UpdateEntityInfoCommand command = new UpdateEntityInfoCommand(metadata, null, null); String output = command.run(); Assert.assertNotNull(output); }