Buggy code:
@ RunWith ( SpringJUnit4ClassRunner . class ) @ SpringApplicationConfiguration ( classes = { Application . class } ) @ WebIntegrationTest ( "server.port<seq2seq4repair_space>=<seq2seq4repair_space>8093" ) public class ProcessControllerTests { @ Autowired UserRepository userRepository ; @ Autowired LabRepository labRepository ; @ Autowired private EmbeddedWebApplicationContext webApplicationContext ; private MockMvc mockMvc ; @ Before public void setUp ( ) throws Exception { } private String processes_expected_template = "[{\"id\":\"5001\",\"activityId\":\"theTask\",\"deploymentId\":\"2501\"," + ( ( ( ( ( ( ( ( ( ( ( ( ( ( "\"name\":null,\"parentId\":null,\"businessKey\":null," + "\"processDefinitionId\":\"example:2:2504\",\"processInstanceId\":\"5001\"," ) + "\"tenantId\":\"\",\"processVariables\":" ) + "{\"assignee\":\"user\"}," ) + "\"events\":[],\"identityLinks\":" ) + "[{\"groupId\":null,\"processInstanceId\":\"5001\",\"taskId\":null," ) + "\"type\":\"participant\",\"userId\":\"user\"}]," ) + "\"tasks\":" ) + "[{\"id\":\"5005\",\"name\":\"my<seq2seq4repair_space>task\",\"deleteReason\":\"\",\"description\":null," ) + "\"assignee\":\"user\",\"createTime\":1426759545561,\"endTime\":null," ) + "\"dueDate\":null,\"owner\":null,\"priority\":50," ) + "\"processInstanceId\":\"5001\",\"parentTaskId\":null,\"formData\":null," ) + "\"attachments\":null}]," ) + "\"suspended\":false,\"ended\":false," ) + "\"diagramData\":null,\"diagramAvailable\":false,\"diagramError\":null}]" ) ; @ Test public void getProcesses ( ) throws Exception { mockMvc . perform ( MockMvcRequestBuilders . get ( "//processes" ) . accept ( APPLICATION_JSON ) ) . andDo ( new ResultHandler ( ) { @ Override public void handle ( MvcResult result ) throws Exception { LogFactory . getLog ( getClass ( ) ) . info ( ( "TEST:<seq2seq4repair_space>getProcesses()\n" + ( result . getResponse ( ) . getContentAsString ( ) ) ) ) ; } <START_BUG> } ) . andExpect ( status ( ) . isOk ( ) ) . andExpect ( content ( ) . string ( is ( processes_expected_template ) ) ) ; <END_BUG> } private String users_test_expected_template = "{\"id\":%d,\"username\":\"palga@dntp.thehyve.nl\",\"password\":\"palga\",\"active\":true," + ( ( ( "\"deleted\":false,\"lab\":null,\"institute\":null," + "\"contactData\":{\"id\":%d,\"telephone\":null,\"email\":\"palga@dntp.thehyve.nl\"," ) + "\"address1\":null,\"address2\":null,\"postalCode\":null,\"city\":null," ) + "\"stateProvince\":null,\"country\":\"NL\"},\"roles\":[{\"id\":%d,\"name\":\"palga\"}]}" ) ; @ Test public void getUser ( ) throws Exception { } private String json_put_test_template = "{\"id\":%d,\"username\":\"scientific_council@dntp.thehyve.nl\",\"password\":\"\",\"active\":true," + "\"deleted\":false,\"contactData\":{\"email\":\"scientific_council@dntp.thehyve.nl\"}}" ; private String json_put_test_expected_template = "{\"id\":%d,\"username\":\"scientific_council@dntp.thehyve.nl\"," + ( ( ( "\"password\":\"\",\"active\":true,\"deleted\":false,\"lab\":null,\"institute\":null," + "\"contactData\":{\"id\":9,\"telephone\":null,\"email\":\"scientific_council@dntp.thehyve.nl\"," ) + "\"address1\":null,\"address2\":null,\"postalCode\":null,\"city\":null," ) + "\"stateProvince\":null,\"country\":\"NL\"}}" ) ; @ Test public void serialiseUser ( ) throws Exception { } private String lab_put_template = "{\"id\":%d,\"number\":%d,\"name\":\"Nijmegen\",\"contactData\":{\"address1\":\"Onderzoeksstraat<seq2seq4repair_space>12\"}}" ; @ Test public void putLab ( ) throws Exception { } }

Fix:
} ) . andExpect ( status ( ) . isOk ( ) ) ;