### Question:
CreateEntitySchemaCommand extends AbstractRestCommand { @Override public String run() { LOGGER.debug("run: entity={}, version={}", entity, version); Error.reset(); Error.push(getClass().getSimpleName()); Error.push(entity); Error.push(version); try { JsonNode schemaDoc = JsonUtils.json(schema); EntitySchema sch; if (schemaDoc.get("schema") != null) { EntityMetadata md = getJsonTranslator().parse(EntityMetadata.class, schemaDoc); sch = md.getEntitySchema(); } else { sch = getJsonTranslator().parse(EntitySchema.class, schemaDoc); } if (!sch.getName().equals(entity)) { throw Error.get(RestMetadataConstants.ERR_NO_NAME_MATCH, entity); } if (!sch.getVersion().getValue().equals(version)) { throw Error.get(RestMetadataConstants.ERR_NO_VERSION_MATCH, version); } Metadata md = getMetadata(); EntityInfo ei = md.getEntityInfo(entity); if (ei == null) { throw Error.get(RestMetadataConstants.ERR_NO_ENTITY_NAME, entity); } EntityMetadata emd = new EntityMetadata(ei, sch); md.createNewSchema(emd); emd = md.getEntityMetadata(entity, version); return getJSONParser().convert(emd).toString(); } catch (Error e) { return e.toString(); } catch (Exception e) { LOGGER.error("Failure: {}", e); return Error.get(RestMetadataConstants.ERR_REST_ERROR, e.toString()).toString(); } } CreateEntitySchemaCommand(String entity, String version, String schema);  CreateEntitySchemaCommand(Metadata metadata, String entity, String version, String schema); @Override String run();  }### Answer:
@Test public void execute() { CreateEntitySchemaCommand command = new CreateEntitySchemaCommand(metadata, null, null, null); String output = command.run(); Assert.assertNotNull(output); }