### Question:
VSplitLayout extends VLayout { public void setTopMember(Canvas member) { String height = top.getHeightAsString(); if (member == null) { top = buildLabel("") .setHeight("50%") .setWidth("100%") .build(); } else { top = member; top.setHeight(height); } setMembers(top,bottom); } VSplitLayout(); static Builder buildVSplitLayout(); void setProportions(double proportion); Canvas getTopMember(); void setTopMember(Canvas member); Canvas getBottomMember(); void setBottomMember(Canvas member);  }### Answer:
@Test public void test_setsTopMemberAsMemberOfTopHolder() { final Canvas member = new Canvas(); vSplitLayout.setTopMember(member); assertEquals(member, ((Layout) vSplitLayout.getMember(0)).getMember(0)); }
@Test public void test_setsTopMemberToFullSize() { final Canvas member = new Canvas(); vSplitLayout.setTopMember(member); assertEquals("100%", member.getHeightAsString()); }