You shouldn't need these assertEquals() methods here. A JUnit test should usually always contain only a single assertion (each method should only test one specific thing). You have already written a testGetSplits method in StatisticTest so you should not need to test its behavior here again.