But keep in mind that Bartosz Wójtowicz is right. You shouldn't use it in production code as it is not a good design. You can use it in testing code, so you won't have to change production code for testing purposes.