### Question:
InventoryResult { public long getAvailCount() { return availCount; } InventoryResult();  InventoryResult(long availCount); long getAvailCount(); void setAvailCount(long availCount);  }### Answer:
@Test public void getAvailCount() { InventoryResult ivRes = new InventoryResult(); assertEquals(0, ivRes.getAvailCount(), 0); ivRes.setAvailCount(98765); assertEquals(98765, ivRes.getAvailCount(), 0); InventoryResult ivRes2 = new InventoryResult(123456); assertEquals(123456, ivRes2.getAvailCount(), 0); }