@Test
public void testSetResourceBundle() {

    final ProgressCheck wrappedCheck = mock(ProgressCheck.class);
    when(wrappedCheck.getResourceBundleBaseName()).thenReturn(getClass().getName());
    final CompletableFuture<ResourceBundle> slot = new CompletableFuture<>();
    doAnswer(call -> slot.complete(call.getArgument(0)))
            .when(wrappedCheck).setResourceBundle(nullable(ResourceBundle.class));
    final ProgressCheckAliasFacade facade = new ProgressCheckAliasFacade(wrappedCheck, "wrapper");
    final ResourceBundle expected = ResourceBundle.getBundle(getClass().getName());
    facade.setResourceBundle(ResourceBundle.getBundle(facade.getResourceBundleBaseName()));
    assertSame("expect same resource bundle", expected, slot.getNow(null));
}