Running JUnit in single thread

I have tests depending on a shared resource. Therefore I need to run tests in a single thread in a single worker and in a single jvm.

How do I do this?