### Question:
PermissionRow { public static PermissionRow newRestrictRow() { return newRestrictRow(new ArrayList<Group>()); } protected  PermissionRow(String rowLabel, List<Group> groups); List<Group> getGroups(); String getRowLabel(); PermissionRow addGroup(@Nonnull Group group); static PermissionRow newAllowRow(); static PermissionRow newRestrictRow(); static PermissionRow newAllowRow(@Nonnull List<Group> groups); static PermissionRow newRestrictRow(@Nonnull List<Group> groups); static PermissionRow newAllowRow(@Nonnull String rowLabel, @Nonnull List<Group> groups); static PermissionRow newRestrictRow(@Nonnull String rowLabel, @Nonnull List<Group> groups); static final String ALLOW_DEFAULT_LABEL; static final String RESTRICT_DEFAULT_LABEL; }### Answer:
@Test public void newRestrictRowTest() { PermissionRow row = PermissionRow.newRestrictRow(); assertEquals(row.getRowLabel(), PermissionRow.RESTRICT_DEFAULT_LABEL); assertEquals(row.getGroups().size(), 0); }