@@ -0,0 +1,2089 @@
+package com.fsck.k9.mail.store.imap;%0A%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.RobolectricTestRunner;%0Aimport org.robolectric.annotation.Config;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0A%0A@RunWith(RobolectricTestRunner.class)%0A@Config(manifest = Config.NONE, sdk = 21)%0Apublic class ImapPushStateTest %7B%0A    @Test%0A    public void parse_withValidArgument() throws Exception %7B%0A        ImapPushState result = ImapPushState.parse(%22uidNext=42%22);%0A%0A        assertNotNull(result);%0A        assertEquals(42L, result.uidNext);%0A    %7D%0A%0A    @Test%0A    public void parse_withNullArgument_shouldReturnUidNextOfMinusOne() throws Exception %7B%0A        ImapPushState result = ImapPushState.parse(null);%0A%0A        assertNotNull(result);%0A        assertEquals(-1L, result.uidNext);%0A    %7D%0A%0A    @Test%0A    public void parse_withEmptyArgument_shouldReturnUidNextOfMinusOne() throws Exception %7B%0A        ImapPushState result = ImapPushState.parse(%22%22);%0A%0A        assertNotNull(result);%0A        assertEquals(-1L, result.uidNext);%0A    %7D%0A%0A    @Test%0A    public void parse_withInvalidArgument_shouldReturnUidNextOfMinusOne() throws Exception %7B%0A        ImapPushState result = ImapPushState.parse(%22xyz%22);%0A%0A        assertNotNull(result);%0A        assertEquals(-1L, result.uidNext);%0A    %7D%0A%0A    @Test%0A    public void parse_withIncompleteArgument_shouldReturnUidNextOfMinusOne() throws Exception %7B%0A        ImapPushState result = ImapPushState.parse(%22uidNext=%22);%0A%0A        assertNotNull(result);%0A        assertEquals(-1L, result.uidNext);%0A    %7D%0A%0A    @Test%0A    public void parse_withoutIntegerAsUidNext_shouldReturnUidNextOfMinusOne() throws Exception %7B%0A        ImapPushState result = ImapPushState.parse(%22uidNext=xyz%22);%0A%0A        assertNotNull(result);%0A        assertEquals(-1L, result.uidNext);%0A    %7D%0A%0A    @Test%0A    public void toString_shouldReturnExpectedResult() throws Exception %7B%0A        ImapPushState imapPushState = new ImapPushState(23L);%0A%0A        String result = imapPushState.toString();%0A%0A        assertEquals(%22uidNext=23%22, result);%0A    %7D%0A%7D%0A

Add unit tests for ImapPushState