Let's add JUnit test for this public util method.