String message = "bogusLabelInfo";
CommandButtonLabelInfo expectedLabelInfo = CommandButtonLabelInfo.valueOf(message);
EasyMock.expect(messageSource.getMessage(messageCode, null, Locale.getDefault())).andReturn(message);
CommandLabelConfigurable configurable = (CommandLabelConfigurable) EasyMock
.createMock(CommandLabelConfigurable.class);
configurable.setLabelInfo(expectedLabelInfo);
EasyMock.replay(messageSource);
EasyMock.replay(configurable);
configurer.configure(configurable, objectName);