### Question:
STKDataGroupBuilder { public DataGroupInfo createGroupAndType(TileSet tileSet, String serverUrl) { String id = serverUrl + tileSet.getName(); DefaultDataGroupInfo dataGroup = new DefaultDataGroupInfo(false, myToolbox, Constants.PROVIDER_TYPE, serverUrl + tileSet.getName(), tileSet.getName()); dataGroup.activationProperty().addListener(myActivationListener); dataGroup.setGroupDescription(buildDescription(tileSet)); DefaultDataTypeInfo dataType = new DefaultDataTypeInfo(myToolbox, serverUrl, id, tileSet.getName(), tileSet.getName(), false); dataType.setUrl(serverUrl); OrderParticipantKey orderKey = new DefaultOrderParticipantKey(DefaultOrderCategory.DEFAULT_ELEVATION_FAMILY, DefaultOrderCategory.EARTH_ELEVATION_CATEGORY, id); dataType.setOrderKey(orderKey); int zOrder = myOrderManager.activateParticipant(orderKey); DefaultTileRenderProperties props = new DefaultTileRenderProperties(zOrder, true, false); ServerMapVisualizationInfo mapInfo = new ServerMapVisualizationInfo(MapVisualizationType.TERRAIN_TILE, props); dataType.setMapVisualizationInfo(mapInfo); dataGroup.addMember(dataType, this); return dataGroup; } STKDataGroupBuilder(Toolbox toolbox); DataGroupInfo createGroupAndType(TileSet tileSet, String serverUrl);  }### Answer:
@Test public void testCreateGroupAndType() { EasyMockSupport support = new EasyMockSupport(); TileSet tileSet = createTileSet(); Toolbox toolbox = createToolbox(support); support.replayAll(); STKDataGroupBuilder builder = new STKDataGroupBuilder(toolbox); DataGroupInfo dataGroup = builder.createGroupAndType(tileSet, ourServer); assertEquals(ourServer + ourTileSetName, dataGroup.getId()); assertEquals(ourTileSetName, dataGroup.getDisplayName()); assertTrue(dataGroup.activationProperty().getListeners().get(0) instanceof STKDataGroupActivationListener); String description = dataGroup.getGroupDescription(); assertTrue(description.contains("I am description")); assertTrue(description.endsWith("source1, source2")); DataTypeInfo dataType = dataGroup.getMemberById(ourServer + ourTileSetName, false); assertEquals(ourServer + ourTileSetName, dataType.getTypeKey()); assertEquals(ourTileSetName, dataType.getDisplayName()); assertEquals(ourTileSetName, dataType.getTypeName()); assertEquals(ourServer, dataType.getSourcePrefix()); MapVisualizationInfo mapVisInfo = dataType.getMapVisualizationInfo(); assertTrue(mapVisInfo.getVisualizationType().isTerrainTileType()); assertEquals(2016, mapVisInfo.getTileRenderProperties().getZOrder()); support.verifyAll(); }