Program: 46969
Project: 46969
Buggy source:
@Test public void testGetAcceptContentType(){
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn(null);
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.APPLICATON_JSON,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_PLAIN,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.APPLICATON_JSON,context.getAcceptContentType());
}

Fixed version (ground truth):
@Test public void testGetAcceptContentType(){
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn(null);
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.APPLICATION_JSON,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_HTML,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.TEXT_PLAIN,context.getAcceptContentType());
  when(httpServletRequest.getHeader("String_Node_Str")).thenReturn("String_Node_Str");
  context.init(servletContext,httpServletRequest,httpServletResponse);
  assertEquals(Result.APPLICATION_JSON,context.getAcceptContentType());
}