@Test public void testSetChannel() { ParsePush push = new ParsePush(); push.setChannel("test"); // Right now it is hard for us to test a builder, so we build a state to test the builder is // set correctly // We have to set message otherwise build() will throw an exception push.setMessage("message"); ParsePush.State state = push.builder.build(); assertEquals(1, state.channelSet().size()); assertTrue(state.channelSet().contains("test")); }