added JUnit test cast