As a junior officer , he completed qualification for command of a diesel-electric submarine .
He was a junior officer when he completed qualification for command of a submarine .