Program: 18146
Project: 18146
Buggy source:
@Test public void parseSystemQueryOptions() throws Exception {
  UriParserResult result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.JSON,result.getFormat());
  assertEquals(InlineCount.ALLPAGES,result.getInlineCount());
  assertEquals("String_Node_Str",result.getSkipToken());
  assertEquals(2,result.getSkip());
  assertEquals(1,result.getTop().intValue());
  result=parse("String_Node_Str");
  assertEquals(Format.ATOM,result.getFormat());
  assertEquals(InlineCount.NONE,result.getInlineCount());
  assertEquals(0,result.getTop().intValue());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.JSON,result.getFormat());
  assertEquals(InlineCount.NONE,result.getInlineCount());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.ATOM,result.getFormat());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.XML,result.getFormat());
  assertNull(result.getTop());
  result=parse("String_Node_Str");
  assertEquals(Format.JSON,result.getFormat());
}

Fixed version (ground truth):
@Test public void parseSystemQueryOptions() throws Exception {
  UriParserResult result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getTargetEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.JSON,result.getFormat());
  assertEquals(InlineCount.ALLPAGES,result.getInlineCount());
  assertEquals("String_Node_Str",result.getSkipToken());
  assertEquals(2,result.getSkip());
  assertEquals(1,result.getTop().intValue());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getTargetEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.ATOM,result.getFormat());
  assertEquals(InlineCount.NONE,result.getInlineCount());
  assertEquals(0,result.getTop().intValue());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getTargetEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.JSON,result.getFormat());
  assertEquals(InlineCount.NONE,result.getInlineCount());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getTargetEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.ATOM,result.getFormat());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getTargetEntitySet().getName());
  assertEquals(UriType.URI1,result.getUriType());
  assertEquals(Format.XML,result.getFormat());
  assertNull(result.getTop());
  result=parse("String_Node_Str");
  assertEquals(Format.JSON,result.getFormat());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getTargetEntitySet().getName());
  assertEquals(UriType.URI4,result.getUriType());
  assertEquals(Format.JSON,result.getFormat());
  result=parse("String_Node_Str");
  assertEquals("String_Node_Str",result.getTargetEntitySet().getName());
  assertEquals(UriType.URI5,result.getUriType());
  assertEquals(Format.JSON,result.getFormat());
}