How would you write robust code and thorough unit tests for a web service at American Association Of Motor Vehicles that exchanges sensitive records?