How to test named pipe file?

Hi ALL,
How can I test a given file name exists and if it is a named pipe file in shell script ?

Thanks............

Perhaps something like:

file="/Pathname/of/file/to/test"
[ -e "$file" ] && echo 'File exists.'
[ -p "$file" ] && echo 'And, it is a named pipe.'
[[ -p "$file" ]] && echo "File exists and it is a named pipe."