String caption = "bogusCaption";
EasyMock.expect(messageSource.getMessage(descriptionCode, null, Locale.getDefault())).andReturn(description);
EasyMock.expect(messageSource.getMessage(captionCode, null, Locale.getDefault())).andReturn(caption);
DescriptionConfigurable configurable = (DescriptionConfigurable) EasyMock
.createMock(DescriptionConfigurable.class);
configurable.setDescription(description);
configurable.setCaption(caption);
EasyMock.replay(messageSource);
EasyMock.replay(configurable);
configurer.configure(configurable, objectName);