junit test for triangle