@Override
    public void badge(final String label) {
        synchronized(NSWorkspace.class) {
            NSApplication.sharedApplication().dockTile().setBadgeLabel(label);
        }
    }
@Test
    public void testBadge() {
        new WorkspaceApplicationBadgeLabeler().badge("1");
    }