@Test public void testSetPushTime() { ParsePush push = new ParsePush(); long time = System.currentTimeMillis() / 1000 + 1000; push.setPushTime(time); // 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(time, state.pushTime().longValue()); }