### Question:
LineageMetadataResource extends AbstractMetadataResource { @GET @Path("/entities") @Produces({MediaType.APPLICATION_JSON}) @Monitored(event = "entity-lineage") public Response getEntityLineageGraph(@Dimension("pipeline") @QueryParam("pipeline") final String pipeline) { LOG.info("Get lineage Graph for pipeline:({})", pipeline); List<Process> processes = new ArrayList<>(); if (StringUtils.isNotBlank(pipeline)) { try { Collection<String> res = ConfigurationStore.get().getEntities(EntityType.PROCESS); for (String processName : res) { Process p = EntityUtil.getEntity(EntityType.PROCESS, processName); String tags = p.getPipelines(); if (StringUtils.isNotEmpty(tags)) { for (String tag : tags.split(",")) { if (StringUtils.equals(tag.trim(), pipeline.trim())) { processes.add(p); } } } } } catch (Exception e) { LOG.error("Error while fetching entity lineage: ", e); throw FalconWebException.newAPIException(e, Response.Status.INTERNAL_SERVER_ERROR); } if (processes.isEmpty()) { throw FalconWebException.newAPIException("No processes belonging to pipeline " + pipeline); } return Response.ok(buildJSONGraph(processes)).build(); } else { throw FalconWebException.newAPIException("Pipeline name can not be blank"); } }  @GET @Path("/serialize") @Produces({MediaType.APPLICATION_JSON}) Response serializeGraph(); @GET @Path("/entities") @Produces({MediaType.APPLICATION_JSON}) @Monitored(event = "entity-lineage") Response getEntityLineageGraph(@Dimension("pipeline") @QueryParam("pipeline") final String pipeline); @GET @Path("/vertices/all") @Produces({MediaType.APPLICATION_JSON}) Response getVertices(); @GET @Path("/vertices/{id}") @Produces({MediaType.APPLICATION_JSON}) Response getVertex(@PathParam("id") final String vertexId); @GET @Path("/vertices/properties/{id}") @Produces({MediaType.APPLICATION_JSON}) Response getVertexProperties(@PathParam("id") final String vertexId,
                                        @DefaultValue("false") @QueryParam("relationships")
                                        final String relationships); @GET @Path("/vertices") @Produces({MediaType.APPLICATION_JSON}) Response getVertices(@QueryParam("key") final String key,
                                @QueryParam("value") final String value); @GET @Path("vertices/{id}/{direction}") @Produces({MediaType.APPLICATION_JSON}) Response getVertexEdges(@PathParam("id") String vertexId,
                                   @PathParam("direction") String direction); @GET @Path("/edges/all") @Produces({MediaType.APPLICATION_JSON}) Response getEdges(); @GET @Path("/edges/{id}") @Produces({MediaType.APPLICATION_JSON}) Response getEdge(@PathParam("id") final String edgeId); static final String OUT_E; static final String IN_E; static final String BOTH_E; static final String OUT; static final String IN; static final String BOTH; static final String OUT_COUNT; static final String IN_COUNT; static final String BOTH_COUNT; static final String OUT_IDS; static final String IN_IDS; static final String BOTH_IDS; }### Answer:
@Test public void testEntityLineage() throws Exception { testContext.addConsumerProcess(); LineageMetadataResource resource = new LineageMetadataResource(); Response response = resource.getEntityLineageGraph("testPipeline"); Assert.assertEquals(response.getStatus(), Response.Status.OK.getStatusCode()); }