@Test
public void testSetResourceBundle() {

    final SimpleProgressCheck check = new SimpleProgressCheck();
    ResourceBundle originalBundle = check.getResourceBundle();
    assertSame("same object returned twice", originalBundle, check.getResourceBundle());
    ResourceBundle newBundle = ResourceBundle.getBundle(check.getResourceBundleBaseName(),
            Locale.getDefault(), new URLClassLoader(new URL[0], getClass().getClassLoader()));
    assertNotSame("not same object as created externally", newBundle, check.getResourceBundle());
    check.setResourceBundle(newBundle);
    assertSame("same object as set", newBundle, check.getResourceBundle());
    assertSame("same object as set, again", newBundle, check.getResourceBundle());
}