### Question:
PortfolioView { public long obtainMoneyToSpend() { return amountOfMoney - reservedAmountOfMoney; }  long obtainAmountOfAvailableItemsFor(String orderBookId); long obtainAmountOfReservedItemsFor(String orderBookId); long obtainAmountOfItemsInPossessionFor(String orderBookId); long obtainMoneyToSpend(); ItemEntry findReservedItemById(String orderBookId); ItemEntry findItemInPossession(String orderBookId); void addReservedItem(ItemEntry itemEntry); void addItemInPossession(ItemEntry itemEntry); void removeReservedItem(String itemId, long amount); void removeItemsInPossession(String itemID, long amount); String getIdentifier(); void setIdentifier(String identifier); String getUserId(); void setUserId(String userId); long getAmountOfMoney(); void setAmountOfMoney(long amountOfMoney); long getReservedAmountOfMoney(); void setReservedAmountOfMoney(long reservedAmountOfMoney); Map<String, ItemEntry> getItemsInPossession(); void setItemsInPossession(Map<String, ItemEntry> itemsInPossession); Map<String, ItemEntry> getItemsReserved(); void setItemsReserved(Map<String, ItemEntry> itemsReserved); @Override String toString();  }### Answer:
@Test public void testObtainBudget() { PortfolioView portfolio = createDefaultPortfolio(); assertEquals(AMOUNT_OF_MONEY - RESERVED_AMOUNT_OF_MONEY, portfolio.obtainMoneyToSpend()); }