Add mockInterface to fix test

"go test" has been failed after the loggregator commit : https://github.com/cloudfoundry/loggregator/commit/82dfdb67e1660e8f3e3e40c9450e10d08fdd297e

fix it please.