DefaultApplicationObjectConfigurer configurer = new DefaultApplicationObjectConfigurer(messageSource);
String objectName = "bogusLabelable";
String messageCode = objectName + ".label";
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);