EntityNotificationImpl implements EntityNotification { @Override public OperationType getOperationType() { return operationType; } @SuppressWarnings("unused") private  EntityNotificationImpl();  EntityNotificationImpl(Referenceable entity, OperationType operationType, List<IStruct> traits);  EntityNotificationImpl(Referenceable entity, OperationType operationType, TypeSystem typeSystem); @Override IReferenceableInstance getEntity(); @Override List<IStruct> getAllTraits(); @Override OperationType getOperationType(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testGetOperationType() throws Exception { Referenceable entity = getEntity("id"); EntityNotificationImpl entityNotification = new EntityNotificationImpl(entity, EntityNotification.OperationType.ENTITY_CREATE, Collections.<IStruct>emptyList()); assertEquals(EntityNotification.OperationType.ENTITY_CREATE, entityNotification.getOperationType()); }