@Test
public void testOptions() throws Exception {

    MetadataKey metadataKey = new MetadataKey("commandDescription", ITEM_NAME);
    Map<String, Object> metadataConfig = new HashMap<>();
    metadataConfig.put("options", "OPTION1,OPTION2 , 3 =Option 3  ");
    Metadata metadata = new Metadata(metadataKey, "N/A", metadataConfig);
    metadataRegistry.added(managedProvider, metadata);
    CommandDescription commandDescription = commandDescriptionProvider.getCommandDescription(ITEM_NAME, null);
    assertNotNull(commandDescription);
    assertNotNull(commandDescription.getCommandOptions());
    assertEquals(3, commandDescription.getCommandOptions().size());
    Iterator<CommandOption> it = commandDescription.getCommandOptions().iterator();
    CommandOption commandOption = it.next();
    assertEquals("OPTION1", commandOption.getCommand());
    assertNull(commandOption.getLabel());
    commandOption = it.next();
    assertEquals("OPTION2", commandOption.getCommand());
    assertNull(commandOption.getLabel());
    commandOption = it.next();
    assertEquals("3", commandOption.getCommand());
    assertEquals("Option 3", commandOption.getLabel());
}