@Before public void initiate() { PostControllerTestServiceApi postService = getPostServiceApi(admin.getUsername(), admin.getPassword()); postService.deleteAll(); if (userServiceApi.getUser(testUser0.getUsername()) == null) userServiceApi.signup(testUser0); if (userServiceApi.getUser(testUser1.getUsername()) == null) userServiceApi.signup(testUser1); FollowerControllerTestServiceApi followerService = getFollowerServiceApi(testUser0.getUsername(), testUser0.getPassword()); followerService.add(testFollower1); }