You copied this from another class I think. Never duplicate code. Make these states globally accesible by providing a utility class that provides them, maken an abstract class for both test cases or find some other way.