@Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Distribution{");
        sb.append("id='").append(id).append('\'');
        sb.append(", reference='").append(reference).append('\'');
        sb.append(", origin=").append(origin);
        sb.append(", enabled=").append(enabled);
        sb.append(", logging=").append(logging);
        sb.append(", url=").append(url);
        sb.append(", status='").append(status).append('\'');
        sb.append('}');
        return sb.toString();
    }
@Test
    public void testMethods() {
        assertEquals(Distribution.DOWNLOAD, Distribution.Method.forName(Distribution.DOWNLOAD.toString()));
        assertEquals(Distribution.CUSTOM, Distribution.Method.forName(Distribution.CUSTOM.toString()));
        assertEquals(Distribution.STREAMING, Distribution.Method.forName(Distribution.STREAMING.toString()));
        assertEquals(Distribution.WEBSITE, Distribution.Method.forName(Distribution.WEBSITE.toString()));
        assertEquals(Distribution.WEBSITE_CDN, Distribution.Method.forName(Distribution.WEBSITE_CDN.toString()));
    }