Which test from the OpenAL SDK do you mean? Is it the one with the following menu?
Select a test from the following options
1 Position Test
2 Looping Test
JOAL does nothing except expose the OpenAL entry points, so in theory any code transliterated to Java using JOAL should work the same as the identical C code.
One thing that might be missing is that JOAL doesn't currently support alcGetString(NULL, ALC_DEVICE_SPECIFIER due to how OpenAL returns the resulting string. This has been on the to-do list for a while and I'll try to add it today. However if you're using the default device then there probably shouldn't be a difference in behavior between the C and Java code. You might try printing alcGetString(device, ALC_DEVICE_SPECIFIER) in your Java code to see what device you're using.