If a witness, after being duly summoned, fails or refuses to attend, or to answer any question propounded to such witness, which such witness would be required to answer if in court, the department of transportation shall have power to fine and imprison such witness for contempt in the same manner that the judge of any court of competent jurisdiction might do under similar circumstances.