CommandMetadata implements MetadataNode { @Override public String getName() { return name; } CommandMetadata(); static Builder builder(Class<? extends Command> commandType); static Builder builder(String commandName); @Override String getName(); @Override String getDescription(); OptionMetadata asOption(); Collection<OptionMetadata> getOptions(); String getShortName(); boolean isHidden();  }
@Test public void testGetName() { CommandMetadata md = CommandMetadata.builder(MyCommand.class).build(); assertEquals("my", md.getName()); assertEquals("m", md.getShortName()); }