Junit test for obstacle and inventory