concept red - green - refactor lifecycle in category java
appears as: red-green-refactor lifecycle

This is an excerpt from Manning's book The Well-Grounded Java Developer.
Note that it’s still very important to follow the red-green-refactor lifecycle here. After adding all of these use cases, you might end up with a test class with failing tests (red) as follows.
This section builds on top of the working example and explores some of the thinking behind TDD. Once more, we’ll cover the red-green-refactor lifecycle, and as you’ll recall, the first step is to write a failing test. But there are a couple of approaches you can take.