double actual = testRanker.calculateMyDamagePotential(mockPath, mockEnemy, testDistance, mockGame);
Assert.assertEquals(expected, actual, TOLERANCE);
actual = testRanker.calculateMyDamagePotential(mockPath, mockEnemy, testDistance, mockGame);
Assert.assertEquals(expected, actual, TOLERANCE);
Mockito.when(mockEnemy.getPosition()).thenReturn(null);
expected = 0;
actual = testRanker.calculateMyDamagePotential(mockPath, mockEnemy, testDistance, mockGame);
Assert.assertEquals(expected, actual, TOLERANCE);