    @Test
    public void parseSmapsNoPermissionException() throws Exception {

        String output = "7f1ada0ca000-7f1ada19c000 rw-p 00000000 00:00 0 \n" +
                "Size:                840 kB\n" +
                "Rss:                 836 kB\n" +
                "Pss:                 836 kB\n" +
                "Shared_Clean:          0 kB\n" +
                "Shared_Dirty:          0 kB\n" +
                "Private_Clean:         0 kB\n" +
                "Private_Dirty:       836 kB\n" +
                "Referenced:          836 kB\n" +
                "Anonymous:           836 kB\n" +
                "AnonHugePages:         0 kB\n" +
                "Shared_Hugetlb:        0 kB\n" +
                "Private_Hugetlb:       0 kB\n" +
                "Swap:                  0 kB\n" +
                "SwapPss:               0 kB\n" +
                "KernelPageSize:        4 kB\n" +
                "MMUPageSize:           4 kB\n" +
                "Locked:                0 kB\n" +
                "VmFlags: rd wr mr mw me ac \n" +
                "7f1ada19d000-7f1ada29d000 r--s 00000000 00:00 0 \n" +
                "Size:               1024 kB\n" +
                "Rss:                  12 kB\n" +
                "Pss:                  12 kB\n" +
                "Shared_Clean:          0 kB\n" +
                "Shared_Dirty:          0 kB\n" +
                "Private_Clean:         0 kB\n" +
                "Private_Dirty:        12 kB\n" +
                "Referenced:           12 kB\n" +
                "Anonymous:            12 kB\n" +
                "AnonHugePages:         0 kB\n" +
                "Shared_Hugetlb:        0 kB\n" +
                "Private_Hugetlb:       0 kB\n" +
                "Swap:                  0 kB\n" +
                "SwapPss:               0 kB\n" +
                "KernelPageSize:        4 kB\n" +
                "MMUPageSize:           4 kB\n" +
                "Locked:                0 kB\n" +
                "VmFlags: rd wr mr mw me ac \n";
        List<ProcFSUtils.ProcSmaps> smaps = ProcFSUtils.parseSmaps(output);

        ProcFSUtils.ProcSmaps s = null;
        
        s = smaps.get(0);
        assertEquals("rw-p", s.permission);
        assertEquals(840, s.size);
        assertEquals(836, s.rss);
        assertEquals(836, s.pss);
        assertEquals(0, s.sharedClean);
        assertEquals(0, s.sharedDirty);
        assertEquals(0, s.privateClean);
        assertEquals(836, s.privateDirty);
        assertEquals(836, s.anonymous);
        assertEquals(836, s.referenced);

        s = smaps.get(1);
        assertEquals("r--s", s.permission);
        assertEquals(1024, s.size);
        assertEquals(12, s.rss);
        assertEquals(12, s.pss);
        assertEquals(0, s.sharedClean);
        assertEquals(0, s.sharedDirty);
        assertEquals(0, s.privateClean);
        assertEquals(12, s.privateDirty);
        assertEquals(12, s.anonymous);
        assertEquals(12, s.referenced);
    }