### Question:
VariableSimpleBuilder { public static VariableSimpleBuilder makeScalar(String name, String desc, String units, DataType dt) { return new VariableSimpleBuilder(name, desc, units, dt, null); } VariableSimpleBuilder(String name, String desc, String units, DataType dt, List<Dimension> dims); static VariableSimpleBuilder fromMember(StructureMembers.Member m); static VariableSimpleBuilder makeScalar(String name, String desc, String units, DataType dt); static VariableSimpleBuilder makeString(String name, String desc, String units, int str_len); VariableSimpleBuilder addAttribute(Attribute att); VariableSimpleBuilder addAttribute(String name, String value); VariableSimpleIF build();  }### Answer:
@Test public void testMakeScalar() { VariableSimpleBuilder builder = VariableSimpleBuilder.makeScalar("name", "desc", "units", DataType.CHAR) .addAttribute(new Attribute("name", 2.34)); VariableSimpleIF vs = builder.build(); assertThat(vs.getShortName()).isEqualTo("name"); assertThat(vs.getFullName()).isEqualTo("name"); assertThat(vs.getDescription()).isEqualTo("desc"); assertThat(vs.getUnitsString()).isEqualTo("units"); assertThat(vs.getDataType()).isEqualTo(DataType.CHAR); assertThat(vs.getDimensions()).hasSize(0); assertThat(vs.getShape()).isEqualTo(new int[] {}); assertThat(vs.getRank()).isEqualTo(0); assertThat(vs.attributes().findAttributeDouble("name", 0.0)).isEqualTo(2.34); }