    @Test
    public void compression() {

        BuildConfiguration config =
            new BuildConfiguration.Builder().
                compression("gzip").build();
        assertEquals(gzip, config.getCompression());

        config = new BuildConfiguration.Builder().build();
        assertEquals(none, config.getCompression());

        config =
            new BuildConfiguration.Builder().
                compression("bzip2").build();
        assertEquals(bzip2, config.getCompression());

        try {
            new BuildConfiguration.Builder().
                compression("bzip").build();
            fail();
        } catch (Exception exp) {
            assertTrue(exp.getMessage().contains("bzip"));
        }
    }