Experimental verification of an APF linac for a proton therapy facility