Program: 142109
Project: 142109
Buggy source:
@Test public void makeSuccessfulPostRequestTest(){
  ModernHttpRequesterMock.setResponseCodes(new Integer[]{200});
  HttpRequestEndpointsMock.setCaseFetchResponseCodes(new Integer[]{200});
  DebugDataPullResponseFactory.setRequestPayloads(new String[]{"String_Node_Str"});
  AndroidSessionWrapper sessionWrapper=CommCareApplication._().getCurrentSessionWrapper();
  CommCareSession session=sessionWrapper.getSession();
  session.setCommand("String_Node_Str");
  InputStream is=PostRequestActivity.class.getClassLoader().getResourceAsStream("String_Node_Str");
  Pair<ExternalDataInstance,String> instanceOrError=QueryRequestActivity.buildExternalDataInstance(is,"String_Node_Str");
  session.setQueryDatum(instanceOrError.first);
  session.setDatum("String_Node_Str","String_Node_Str");
  ShadowActivity shadowActivity=ActivityLaunchUtils.buildHomeActivity();
  Intent postActivityIntent=shadowActivity.getNextStartedActivity();
  String intentActivityName=postActivityIntent.getComponent().getClassName();
  assertTrue(intentActivityName.equals(PostRequestActivity.class.getName()));
  assertEquals("String_Node_Str",postActivityIntent.getStringExtra(PostRequestActivity.URL_KEY));
  Hashtable<String,String> postUrlParams=(Hashtable<String,String>)postActivityIntent.getSerializableExtra(PostRequestActivity.PARAMS_KEY);
  assertEquals("String_Node_Str",postUrlParams.get("String_Node_Str"));
  PostRequestActivity postRequestActivity=Robolectric.buildActivity(PostRequestActivity.class).withIntent(postActivityIntent).create().start().resume().get();
  assertTrue(postRequestActivity.isFinishing());
}

Fixed version (ground truth):
/** 
 * Launch post request through session dispatch
 */
@Test public void makeSuccessfulPostRequestTest(){
  ModernHttpRequesterMock.setResponseCodes(new Integer[]{200});
  HttpRequestEndpointsMock.setCaseFetchResponseCodes(new Integer[]{200});
  DebugDataPullResponseFactory.setRequestPayloads(new String[]{"String_Node_Str"});
  AndroidSessionWrapper sessionWrapper=CommCareApplication._().getCurrentSessionWrapper();
  CommCareSession session=sessionWrapper.getSession();
  session.setCommand("String_Node_Str");
  InputStream is=PostRequestActivity.class.getClassLoader().getResourceAsStream("String_Node_Str");
  Pair<ExternalDataInstance,String> instanceOrError=QueryRequestActivity.buildExternalDataInstance(is,"String_Node_Str");
  session.setQueryDatum(instanceOrError.first);
  session.setDatum("String_Node_Str","String_Node_Str");
  ShadowActivity shadowActivity=ActivityLaunchUtils.buildHomeActivity();
  Intent postActivityIntent=shadowActivity.getNextStartedActivity();
  String intentActivityName=postActivityIntent.getComponent().getClassName();
  assertTrue(intentActivityName.equals(PostRequestActivity.class.getName()));
  assertEquals("String_Node_Str",postActivityIntent.getStringExtra(PostRequestActivity.URL_KEY));
  Hashtable<String,String> postUrlParams=(Hashtable<String,String>)postActivityIntent.getSerializableExtra(PostRequestActivity.PARAMS_KEY);
  assertEquals("String_Node_Str",postUrlParams.get("String_Node_Str"));
  PostRequestActivity postRequestActivity=Robolectric.buildActivity(PostRequestActivity.class).withIntent(postActivityIntent).create().start().resume().get();
  assertTrue(postRequestActivity.isFinishing());
}