I want to do a JUnit test case for an interface, as you know i can\'t make an object from the interface and i don\'t want any classes names to show up in that test, i want o
You could make an abstract base class for unit tests. For specific classes that implement the interface a unit test would simply extend the abstract base class.
The abstract base class could test things that should hold, like close after open or other things.