This program uses a HashMap to find a duplicate integer within an array. It includes a JUnit test class.