create Barrier Depo class and JUnit tests for it.