Source:
<code>public void testCreateExtensionMailboxInfoNoModSeqSuccess() throws IOException, ProtocolException { final IMAPResponse[] content = new IMAPResponse[8]; content[0] = new IMAPResponse("* 3 EXISTS"); content[1] = new IMAPResponse("* 0 RECENT"); content[2] = new IMAPResponse("* OK [UIDVALIDITY 1459808247] UIDs valid"); content[3] = new IMAPResponse("* OK [UIDNEXT 150400] Predicted next UID"); content[4] = new IMAPResponse("* FLAGS (\\Answered \\Deleted \\Draft \\Flagged \\Seen $Forwarded $Junk $NotJunk)"); content[5] = new IMAPResponse("* OK [PERMANENTFLAGS (\\Deleted \\Seen \\*)] Limited"); content[6] = new IMAPResponse("* OK [NOMODSEQ] Sorry, this mailbox format doesn't support modsequences"); content[7] = new IMAPResponse("A142 OK [READ-WRITE] SELECT completed"); final ExtensionMailboxInfo minfo = new ExtensionMailboxInfo(content); Assert.assertNotNull(minfo, "result mismatched."); Assert.assertNotNull(minfo.availableFlags, "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.ANSWERED), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.DELETED), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.DRAFT), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.FLAGGED), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.SEEN), "availableFlags mismatched."); Assert.assertEquals(minfo.uidvalidity, 1459808247, "uidvalidity mismatched."); Assert.assertEquals(minfo.uidnext, 150400, "uidnext mismatched."); <START> Assert.assertEquals(minfo.isNoModSeq(), true, "NOMODSEQ mismatched."); <END> }</code><technical_language>assertTrue instead of assertEquals</technical_language>

Target:
public void testCreateExtensionMailboxInfoNoModSeqSuccess() throws IOException, ProtocolException { final IMAPResponse[] content = new IMAPResponse[8]; content[0] = new IMAPResponse("* 3 EXISTS"); content[1] = new IMAPResponse("* 0 RECENT"); content[2] = new IMAPResponse("* OK [UIDVALIDITY 1459808247] UIDs valid"); content[3] = new IMAPResponse("* OK [UIDNEXT 150400] Predicted next UID"); content[4] = new IMAPResponse("* FLAGS (\\Answered \\Deleted \\Draft \\Flagged \\Seen $Forwarded $Junk $NotJunk)"); content[5] = new IMAPResponse("* OK [PERMANENTFLAGS (\\Deleted \\Seen \\*)] Limited"); content[6] = new IMAPResponse("* OK [NOMODSEQ] Sorry, this mailbox format doesn't support modsequences"); content[7] = new IMAPResponse("A142 OK [READ-WRITE] SELECT completed"); final ExtensionMailboxInfo minfo = new ExtensionMailboxInfo(content); Assert.assertNotNull(minfo, "result mismatched."); Assert.assertNotNull(minfo.availableFlags, "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.ANSWERED), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.DELETED), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.DRAFT), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.FLAGGED), "availableFlags mismatched."); Assert.assertTrue(minfo.availableFlags.contains(Flag.SEEN), "availableFlags mismatched."); Assert.assertEquals(minfo.uidvalidity, 1459808247, "uidvalidity mismatched."); Assert.assertEquals(minfo.uidnext, 150400, "uidnext mismatched."); Assert.assertTrue(minfo.isNoModSeq(), "isNoModSeq() mismatched."); }