In this example case a re-entrant lock, implemented in Java, is verified. An atomic integer is used as the synchroniser.