### Question:
StarCalculator { public int getStars(int neededMoves, int minimumMoves) { int stars; if ((minimumMoves - neededMoves) >= 0) { stars = 3; } else if (((float) (minimumMoves) / neededMoves) > 0.6) { stars = 2; } else { stars = 1; } return stars; }  int getStars(int neededMoves, int minimumMoves);  }### Answer:
@Test public void getStarsThree() { int neededMoves = 10; assertThat(sut.getStars(neededMoves, minimumMoves), is(3)); }
@Test public void getStarsTwoLowerBorder() { int neededMoves = 11; assertThat(sut.getStars(neededMoves, minimumMoves), is(2)); }
@Test public void getStarsTwoHigherBorder() { int neededMoves = 16; assertThat(sut.getStars(neededMoves, minimumMoves), is(2)); }
@Test public void getStarsOneHigherBorder() { int neededMoves = 17; assertThat(sut.getStars(neededMoves, minimumMoves), is(1)); }
@Test public void getStarsOneLowerBorder() { int neededMoves = 100; assertThat(sut.getStars(neededMoves, minimumMoves), is(1)); }