An alleged terrorist accused in the grisly murders of four Americans appeared in court Wednesday in Iraq. But Ahmed Hashim Abed isn’t the one on trial. Instead, he was testifying against one of the Navy Seals who arrested him last September.

Petty Officer First Class Julio Huertas of Blue Island, Illinois, is being tried at a military base on the western outskirts of Baghdad. Huertas and two other Navy Seals face charges in connection with Abed’s arrest, during which the prisoner claims he was punched and kicked by at least one of his captors.