private void assertDebug(QueryResponse response,boolean expected,String key){
  if (expected) {
    assertInDebug(response,key);
  }
 else {
    assertNotInDebug(response,key);
  }
}

private void assertDebug ( QueryResponse response , boolean expected , String key ) { if ( expected ) { assertInDebug ( response , key ) ; } else { assertNotInDebug ( response , key ) ; } }
asserts that the specified debug result key does or does not exist in the response based on the expected boolean .
