@Override
    public boolean isInstalled(final Application application) {
        synchronized(NSWorkspace.class) {
            if(Application.notfound.equals(application)) {
                return false;
            }
            return workspace.absolutePathForAppBundleWithIdentifier(
                application.getIdentifier()) != null;
        }
    }
@Test
    public void testInstalled() {
        ApplicationFinder f = new LaunchServicesApplicationFinder();
        assertTrue(f.isInstalled(new Application("com.apple.Preview", "Preview")));
        assertFalse(f.isInstalled(new Application("com.apple.Preview_", "Preview")));
        assertFalse(f.isInstalled(Application.notfound));
    }