@@ -0,0 +1,1466 @@
+/**%0A * Copyright (c) 2014-2017 by the respective copyright holders.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A */%0Apackage org.eclipse.smarthome.core.library;%0A%0Aimport static org.hamcrest.CoreMatchers.*;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.eclipse.smarthome.core.items.GenericItem;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class CoreItemFactoryTest %7B%0A%0A    private CoreItemFactory coreItemFactory;%0A%0A    private List%3CString%3E itemTypeNames;%0A%0A    @Before%0A    public void setup() %7B%0A        coreItemFactory = new CoreItemFactory();%0A        itemTypeNames = Arrays.asList(coreItemFactory.getSupportedItemTypes());%0A    %7D%0A%0A    @Test%0A    public void shouldCreateItems() %7B%0A        for (String itemTypeName : itemTypeNames) %7B%0A            GenericItem item = coreItemFactory.createItem(itemTypeName, itemTypeName.toLowerCase());%0A%0A            assertThat(item.getType(), is(itemTypeName));%0A            assertThat(item.getName(), is(itemTypeName.toLowerCase()));%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void shouldReturnNullForUnsupportedItemTypeName() %7B%0A        GenericItem item = coreItemFactory.createItem(%22NoValidItemTypeName%22, %22IWantMyItem%22);%0A%0A        assertThat(item, is(nullValue()));%0A    %7D%0A%0A%7D%0A

Add CoreItemFactoryTest, in addition to #3507 (#3509)