Added Mockito and TestNG to project (TestNG via Eclipse plugin). Added first unit tests. Fixed endless loop with maxRetries = 1.