@Test public void addCommentToCodeReview_UserSubscribedToCodeReviewOnlyReceivesCodeReviewNotificationOnly() throws Exception { User codeReviewStarter = Users.signUpAndSignIn(); CodeReview codeReview = Topics.createCodeReview(new CodeReview().withBranch(NOTIFICATION_BRANCH)); - Topics.subscribe(codeReview); + //We do not subscribe codeReviewStarter to topic explicitly, because he is automatically subscribed Users.logout(); User topicCommentator = Users.signUpAndSignIn(); Topics.leaveCodeReviewComment(codeReview, new CodeReviewComment()); Notifications.assertNotificationOnTopicSentBranchNotSent(codeReview, codeReviewStarter); }