void () { String path; path = NSWorkspace.absolutePathForAppBundleWithIdentifier("com.apple.Finder"); assertThat(path, notNullValue()); assertThat(path, endsWith("Finder.app")); path = NSWorkspace.absolutePathForAppBundleWithIdentifier("non-existing-blah-blah"); assertThat(path, nullValue()); }