### Question:
DefaultDataGroupAndTypeFactory implements DataGroupAndTypeFactory { @Override public DefaultDataTypeInfo createType(Toolbox toolbox, String providerType, String id, String typeName, String layerName) { return new DefaultDataTypeInfo(toolbox, providerType, id, typeName, layerName, false); }  @Override DefaultDataGroupInfo createGroup(Toolbox toolbox, String providerType, String folderName,
            Consumer<DataGroupInfo> deleteListener); @Override DefaultDataTypeInfo createType(Toolbox toolbox, String providerType, String id, String typeName, String layerName);  }### Answer:
@Test public void testCreateType() { EasyMockSupport support = new EasyMockSupport(); MantleToolbox mantle = createMantle(support); Toolbox toolbox = createToolbox(support, mantle); support.replayAll(); DefaultDataGroupAndTypeFactory factory = new DefaultDataGroupAndTypeFactory(); DataTypeInfo type = factory.createType(toolbox, ourProviderType, ourTypeKey, "my type name", "My layer name"); assertEquals(ourProviderType, type.getSourcePrefix()); assertEquals(ourTypeKey, type.getTypeKey()); assertEquals("My layer name", type.getDisplayName()); assertEquals("my type name", type.getTypeName()); assertFalse(type.providerFiltersMetaData()); support.verifyAll(); }