I would like to write a unit test for this to see how it looks in the context of JDK 8. Apparently other parts of the JDK lend themselves to being used by here e.g. StringBuilder.