used jmock instead of mockito