@Test public void testPurchaseMonthlyPass() { PurchasingManager pm = new PurchasingManager(); PurchaseMonthlyPassRequest request = new PurchaseMonthlyPassRequest(); request.setMonth(4); request.setYear(2013); request.setMobileDeviceMAC("234234234"); request.setVersion(1); PurchaseThreeDayPassCommand command = mock(PurchaseThreeDayPassCommand.class); doNothing().when(command).execute(); PurchaseMonthlyPassResponse res = pm.purchaseMonthlyPass(request); assertNotNull(res); }