@@ -0,0 +1,1507 @@
+/**%0A * Copyright (c) 2014 Halloran Parry, all rights reserved.%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.meleemistress.funfunfun.notation;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0Aimport java.util.function.Supplier;%0A%0Aimport javax.swing.text.DateFormatter;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * @author hparry%0A *%0A */%0Apublic class ThreadLocalTest %7B%0A    %0A    @Test%0A    public void testThreadLocalConstruction() %7B%0A        Supplier%3CBoolean%3E supplier = () -%3E true;%0A        ThreadLocal%3CBoolean%3E tl = ThreadLocal.withInitial(supplier);%0A        assertTrue(tl.get());%0A    %7D%0A    %0A    @Test%0A    public void testThreadLocalDate() %7B%0A        SimpleDateFormat sdf = new SimpleDateFormat(%22dd-MMM-YYYY%22);%0A        Supplier%3CDateFormatter%3E supplier = () -%3E new DateFormatter(sdf);%0A        ThreadLocal%3CDateFormatter%3E tl = ThreadLocal.withInitial(supplier);%0A        System.out.println(tl.get().getFormat().format(new Date()));%0A        %0A    %7D%0A%0A%7D%0A

Add a ThreadLocal test