### Question:
StructureDB extends CompositeDB implements Structure { @Override public final DataTypeComponent insertAtOffset(int offset, DataType dataType, int length) throws IllegalArgumentException { return insertAtOffset(offset, dataType, length, null, null); } StructureDB(DataTypeManagerDB dataMgr, DBObjectCache<DataTypeDB> cache,
			CompositeDBAdapter compositeAdapter, ComponentDBAdapter componentAdapter,
			Record record); @Override String getRepresentation(MemBuffer buf, Settings settings, int length); @Override DataTypeComponent add(DataType dataType, int length, String name, String comment); @Override void growStructure(int amount); @Override DataTypeComponent insert(int ordinal, DataType dataType, int length, String name,
			String comment); @Override DataTypeComponent addBitField(DataType baseDataType, int bitSize, String componentName,
			String comment); @Override DataTypeComponent insertBitField(int ordinal, int byteWidth, int bitOffset,
			DataType baseDataType, int bitSize, String componentName, String comment); @Override DataTypeComponent insertBitFieldAt(int byteOffset, int byteWidth, int bitOffset,
			DataType baseDataType, int bitSize, String componentName, String comment); @Override void delete(int ordinal); @Override void delete(int[] ordinals); @Override boolean isPartOf(DataType dataType); @Override int getNumComponents(); @Override int getNumDefinedComponents(); @Override DataTypeComponent getComponent(int ordinal); @Override DataTypeComponent[] getComponents(); @Override DataType copy(DataTypeManager dtm); @Override Structure clone(DataTypeManager dtm); @Override boolean isNotYetDefined(); @Override int getAlignment(); @Override int getLength(); @Override void clearComponent(int ordinal); @Override void deleteAtOffset(int offset); @Override DataTypeComponent getComponentAt(int offset); @Override DataTypeComponent getDataTypeAt(int offset); @Override DataTypeComponentDB[] getDefinedComponents(); @Override final DataTypeComponent insertAtOffset(int offset, DataType dataType, int length); @Override DataTypeComponent insertAtOffset(int offset, DataType dataType, int length, String name,
			String comment); @Override DataTypeComponent replace(int ordinal, DataType dataType, int length, String name,
			String comment); @Override final DataTypeComponent replace(int ordinal, DataType dataType, int length); @Override DataTypeComponent replaceAtOffset(int offset, DataType dataType, int length, String name,
			String comment); @Override void replaceWith(DataType dataType); @Override void dataTypeDeleted(DataType dt); @Override void dataTypeSizeChanged(DataType dt); @Override void dataTypeAlignmentChanged(DataType dt); @Override boolean isEquivalent(DataType dataType); @Override String getDefaultLabelPrefix(); @Override void dataTypeReplaced(DataType oldDt, DataType newDt); @Override void dataTypeNameChanged(DataType dt, String oldName); @Override void deleteAll(); @Override void realign(); @Override void pack(int packingSize); @Override boolean hasFlexibleArrayComponent(); @Override DataTypeComponentDB getFlexibleArrayComponent(); @Override DataTypeComponent setFlexibleArrayComponent(DataType flexType, String name,
			String comment); @Override void clearFlexibleArrayComponent();  }### Answer:
@Test public void testInsertAtOffset() { struct.insertAtOffset(0, new FloatDataType(), 4); assertEquals(12, struct.getLength()); DataTypeComponent[] comps = struct.getDefinedComponents(); assertEquals(5, comps.length); assertEquals(0, comps[0].getOffset()); assertEquals(0, comps[0].getOrdinal()); assertEquals(FloatDataType.class, comps[0].getDataType().getClass()); assertEquals(4, comps[1].getOffset()); assertEquals(1, comps[1].getOrdinal()); assertEquals(ByteDataType.class, comps[1].getDataType().getClass()); assertEquals(5, comps[2].getOffset()); assertEquals(2, comps[2].getOrdinal()); assertEquals(WordDataType.class, comps[2].getDataType().getClass()); assertEquals(7, comps[3].getOffset()); assertEquals(3, comps[3].getOrdinal()); assertEquals(DWordDataType.class, comps[3].getDataType().getClass()); }