public class LongArrayConverterTest {
@Test
public void testConversion() {
LongArrayConverter longArrayConverter = (LongArrayConverter) TypeConverterManager.lookup(long[].class);
assertNull(longArrayConverter.convert(null));
assertEq(arrl(173), longArrayConverter.convert(Double.valueOf(173)));
assertEq(arrl(173, 1022, 29929), longArrayConverter.convert(arrf(173, 1022, 29929)));
assertEq(arrl(173, 1022, 29929), longArrayConverter.convert(arrd(173, 1022, 29929)));
assertEq(arrl(173, 1022, 29929), longArrayConverter.convert(arri(173, 1022, 29929)));
assertEq(arrl(173, 1022, 29929), longArrayConverter.convert(arrl(173, 1022, 29929)));
assertEq(arrl(173, 1022), longArrayConverter.convert(arrs("173", "1022")));
assertEq(arrl(173, 1022), longArrayConverter.convert(arro("173", Long.valueOf(1022))));
assertEq(arrl(111, 777, 333), longArrayConverter.convert(arrs("111", " 777 ", "333")));
assertEq(arrl(111, 777, 333), longArrayConverter.convert("111, 777, 333"));
}