### Question:
LayeredGraph implements ReorderedGraph { @Override public void setVertexSize(final String vertexId, final int width, final int height) { verticesWidth.put(vertexId, width); verticesHeight.put(vertexId, height); } LayeredGraph();  LayeredGraph(final String[][] edgesMatrix); void addEdge(final String from,
                        final String to); void addEdge(final OrientedEdgeImpl edge); List<GraphLayer> getLayers(); List<String> getVertices(); @Override List<OrientedEdge> getEdges(); @Override int getVertexHeight(final String vertexId); @Override int getVertexWidth(final String vertexId); @Override void setVertexSize(final String vertexId, final int width, final int height); boolean isAcyclic(); String[] getVerticesFrom(final String vertex);  }### Answer:
@Test public void testSetVertexSize() { final int width = 15; final int height = 17; final String id = "1"; tested.setVertexSize(id, width, height); final int actualWidth = tested.getVertexWidth(id); final int actualHeight = tested.getVertexHeight(id); assertEquals(width, actualWidth); assertEquals(height, actualHeight); }