Used mockito when applicable