A light source supplies optical signal to an optical switch and a detector
detects light receiving level. A control unit changes a deflection
control amount for changing an angle of a tilt mirror, and outputs the
deflection control amount to a driving unit. When an input and an output
ports are same, optical offset of the tilt mirror is calculated based on
optimal angle at which the light detector detects an optimal point of the
light receiving level. Whenever the input and the output port are
different, a structure parameter of the tilt mirror is calculated based
on the optical offset and the optimal angle. The optical offset and the
structure parameter are stored in a memory as a test result.