    @Test
    public void testCompressWithDotCaTLD() throws MalformedURLException {

        String testURL = "http://google.ca";
        byte[] expectedBytes = {0x02, 'g', 'o', 'o', 'g', 'l', 'e', '.', 'c', 'a'};
        assertTrue(Arrays.equals(expectedBytes, UrlBeaconUrlCompressor.compress(testURL)));
    }