### Question:
QueryInventoryTask extends AsyncTask<QueryInventoryTask.Args, Void, Inventory> { @Override protected Inventory doInBackground(Args... args) { if (args == null || args.length == 0 || args[0] == null) throw new IllegalArgumentException("need args"); final Args arg = args[0]; try { return mIabHelper.queryInventory(arg.queryDetails, arg.skus, arg.subSkus); } catch (IabException ex) { mResult = ex.getResult(); return null; } } QueryInventoryTask(IabHelper iabHelper, QueryInventoryFinishedListener listener);   }### Answer:
@Test(expected = IllegalArgumentException.class) public void shouldCheckArgumentsNull() throws Exception { task.doInBackground((QueryInventoryTask.Args) null); }
@Test(expected = IllegalArgumentException.class) public void shouldCheckArgumentsEmpty() throws Exception { task.doInBackground(new QueryInventoryTask.Args[0]); }