@Test
public void testGetInstanceFailsIfNoImplementationAvailable() {

    try {
        RuntimeDelegate.getInstance();
        fail();
    } catch (RuntimeException e) {
        assertEquals(
                "java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.ext.RuntimeDelegate cannot be found",
                e.getMessage());
    }
}