@Test
public void testSource() throws Exception {

    MirageIOException e = new MirageIOException(Mirage.Source.EXTERNAL);
    Assert.assertEquals(Mirage.Source.EXTERNAL, e.getSource());
    e = new MirageIOException(Mirage.Source.DISK, new IOException("test exception"));
    Assert.assertEquals(Mirage.Source.DISK, e.getSource());
}