### Question:
DefaultCommand implements ComponentCommand { @Override public void printOn(Media media) { media.with("name", command.getCommand()); } DefaultCommand(CommandRegistrationCache.RegistrationEntry command, Set<CommandHandler> commandHandlers); @Override Boolean belongsToComponent(String component); @Override boolean belongsToContext(String context); @Override void printOn(Media media);  }### Answer:
@Test public void printOn() { GsonMedia gsonMedia = new GsonMedia(); defaultCommand.printOn(gsonMedia); assertEquals("{\"name\":\"commandName\"}", gsonMedia.toString()); }