}
public static JsonObject getOperationProperties( String target, OperationType type, String operationName ) {
TestMessage message = Fixture.getProtocolMessage();
if( type == OperationType.CREATE ) {
CreateOperation operation = message.findCreateOperation( target );
if( operation != null ) {
return operation.getProperties();
}
} else if( type == OperationType.CALL ) {
CallOperation operation = message.findCallOperation( target, operationName );
if( operation != null ) {
return operation.getParameters();
}
} else if( type == OperationType.SET ) {
SetOperation operation = findSetOperation( message, target );
if( operation != null ) {
return operation.getProperties();
}
} else if( type == OperationType.LISTEN ) {
ListenOperation operation = findListenOperation( message, target );
if( operation != null ) {
return operation.getProperties();
}
}
return new JsonObject();
}