Remove ListenerRegistration protobuff messages
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / DataChangeListenerRegistrationTest.java
index a499ab3030a1597b66a2c3b5712e59d05570ac67..a2bd569b3b88f65791f3371d672651e246327d47 100644 (file)
@@ -44,13 +44,13 @@ public class DataChangeListenerRegistrationTest extends AbstractActorTest {
         @Override
         protected void run() {
 
-          subject.tell(new CloseDataChangeListenerRegistration().toSerializable(), getRef());
+          subject.tell(CloseDataChangeListenerRegistration.INSTANCE, getRef());
 
           final String out = new ExpectMsg<String>(duration("1 seconds"), "match hint") {
             // do not put code outside this method, will run afterwards
             @Override
             protected String match(final Object in) {
-              if (in.getClass().equals(CloseDataChangeListenerRegistrationReply.SERIALIZABLE_CLASS)) {
+              if (in.getClass().equals(CloseDataChangeListenerRegistrationReply.class)) {
                 return "match";
               } else {
                 throw noMatch();