public static void assertSingleElement ( final Collection < ? > collection , final StatusType status ) { RESTAssert . assertNotNull ( collection , status ) ; RESTAssert . assertTrue ( collection . size ( ) == 1 , status ) ; }
assert that collection has one element