@Test
    public void linkageErrorIsCaught() throws Exception {
        try {
            System.setProperty(LinkageErrorImpl.class.getName(),
                    LinkageErrorImpl.class.getName());
            ServiceLib.loadService(LinkageErrorImpl.class);
            fail("Should not make it here");
        } catch (IllegalStateException isx) {
            // Couldn't find a service impl.  This is good.
        } catch (Throwable thr) {
            fail("LinkageError exposed a throwable");
        } finally {
            System.getProperties().remove(LinkageErrorImpl.class.getName());
        }
    }