### Question:
OTPServiceImpl implements OTPService.Iface { @Override public GraphEdgesResponse GetEdges(GraphEdgesRequest req) throws TException { LOG.debug("GetEdges called"); long startTime = System.currentTimeMillis(); GraphEdgesResponse res = new GraphEdgesResponse(); Graph g = graphService.getGraph(); res.setEdges(makeGraphEdges(g, req)); res.setCompute_time_millis(System.currentTimeMillis() - startTime); return res; }  @Override GraphVerticesResponse GetVertices(GraphVerticesRequest req); @Override GraphEdgesResponse GetEdges(GraphEdgesRequest req); @Override FindNearestVertexResponse FindNearestVertex(FindNearestVertexRequest req); @Override BulkFindNearestVertexResponse BulkFindNearestVertex(BulkFindNearestVertexRequest req); @Override FindNearestEdgesResponse FindNearestEdges(FindNearestEdgesRequest req); @Override BulkFindNearestEdgesResponse BulkFindNearestEdges(BulkFindNearestEdgesRequest req); @Override FindPathsResponse FindPaths(FindPathsRequest req); @Override BulkPathsResponse BulkFindPaths(BulkPathsRequest req);  }### Answer:
@Test public void testGetGraphEdges() throws TException { GraphEdgesRequest req = new GraphEdgesRequest(); req.validate(); req.setStreet_edges_only(true); GraphEdgesResponse res = serviceImpl.GetEdges(req); Set<Integer> expectedEdgeIds = new HashSet<Integer>(); for (Edge e : graph.getStreetEdges()) { expectedEdgeIds.add(e.getId()); } Set<Integer> actualEdgeIds = new HashSet<Integer>(res.getEdgesSize()); for (GraphEdge ge : res.getEdges()) { actualEdgeIds.add(ge.getId()); } assertTrue(expectedEdgeIds.equals(actualEdgeIds)); }