HONOLULU (KITV) - A Maui man accused of shooting another man back in May, is set to be in court Wednesday.

Maui police say 45-year-old Dennis Pacheco's body was dumped in the Kahiki-Nui area. 

42-year-old Justin Namau'u’s ex-girlfriend testified in court that Namau'u shot Pacheco after finding her in bed with him.

Namau'u claims the woman and Pacheco attacked him and his gun accidentally went off during the struggle. 

He's charged with second degree murder, kidnapping and a firearms violations.