@Test(expected = IllegalArgumentException.class)
public void testFailsOnUnsupportedType() throws URISyntaxException {
Registrations reg = new Registrations();
PushConfig config = new PushConfig(new URI("http://testreg.com"), "TestID");
config.setType(new PushType() {
@Override
public String getName() {
return "FAIL_TYPE";
}