@Test
public void testCheckMagic() throws Exception {

    File patch = new File(this.getClass().getResource("/ups/readUpsCrc.ups").getPath());
    assertTrue(UPS.checkMagic(patch));
    File noPatch = new File(this.getClass().getResource("/ups/readUpsCrc.bin").getPath());
    assertFalse(UPS.checkMagic(noPatch));
}