Don't use deprecated Assert class

Change-Id: I0dbef06d0fa319628f6fa528f5ab3adfd5752c11