ObjectSenderInitializer { public void initObjectSender(BristlebackConfig configuration, ConditionObjectSender objectSender) { objectSender.init(configuration, connectedUsers); resolveSerializations(objectSender); }  void initObjectSender(BristlebackConfig configuration, ConditionObjectSender objectSender);  }
@Test public void shouldInitObjectSenderWithBothDefaultAndNonDefaultSerialization() throws NoSuchFieldException { Field field = SimpleActionClass.class.getDeclaredField("conditionObjectSender"); objectSender.setField(field); objectSenderInitializer.initObjectSender(configuration, objectSender); assertNotNull(objectSender.getLocalSerializations().getSerialization(MockBean.class)); assertNotNull(objectSender.getLocalSerializations().getSerialization(SimpleMockBean.class)); }