It seems like you could do this without reflection. Asserting that the same datetime instance is returned from multiple calls of getTimestamp() seems to be the heart of the matter here.