An assessment of the J-integral test for a metallic foam